Open venkatiiitb opened 10 years ago
You should do something like this:
$params = array(
'object' => array(
'where' => array(
'objectId' => array('$in' => $ids)
),
'data' => $data,
)
);
$request = $parse_client->notification($params);
<?php include 'parse.php';
$parse = new parseRestClient(array( 'appid' => 'vpdCkLIeNtQQBNTIyroFqA7Lu4HXdYzvvxgvIZK4', 'restkey' => 'flkexIKpXRUmac6ofZvIPmbI77tEGb1u75F6Bi3O' ));
$params = array( 'objectId' => 'KPgFA2H1YG', 'object' => array( 'data' => array( 'alert' => 'This is alert message from venkat!', 'sound' => 'default', ) ) );
$request = $parse->notification($params);
print_r($request); ?>
But it's giving me errors what i am doing wrong