-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSendPushFromPhpSample.php
More file actions
29 lines (22 loc) · 1.03 KB
/
SendPushFromPhpSample.php
File metadata and controls
29 lines (22 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include_once "pushSender.lib.class.php";
$sender = new pushSender();
// all param not null.
$new_params = array(
"LogMessage"=> "Eravse new", // Message for push notification.
"Source"=> "demo LogPusher", // If you use same app multiple integration please split your source app for exp. Website1, WebSite2 etc
"Category"=> "sample string 5", // Category is dynamic. Exception, Service , Order etc.
"LogType"=> "sample string 6", // LogType is Dynamic. What you want to see Error , success etc.
"LogTime"=> "sample string 7", // LogTime is hour:minute for exp : 10:35
"CreatedDate"=> "2016-10-24T21:26:46.4000402+03:00", // DateTime must be format for en-EN Culture
"EventId"=> "sample string 9" // your event Id. Create new Guid or Any string.
);
$new_credientals = array(
'email' => 'hello@logpusher.com',
'pwd' => 'somepwd'
);
echo "Datetime :".$sender->get_datetime(). "<br>";
echo "Default Credientals and Parameters <pre>";
print_r($sender->make_request($new_params));
echo "</pre>";
?php>