File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ // Turns error reporting up to eleven
4
+ error_reporting (E_ALL ^E_STRICT );
5
+ ini_set ('display_errors ' , 1 );
6
+
3
7
// Catches the Instagram realtime Pubsubhubub challenge flow
4
8
if (isset ($ _GET ['hub_challenge ' ])) {
5
9
echo $ _GET ['hub_challenge ' ];
8
12
9
13
if ($ _SERVER ['REQUEST_METHOD ' ]==='POST ' ) {
10
14
// Instantiates Pusher PHP API
11
- // require 'lib/Pusher.php';
12
-
13
- // $pusher = new Pusher('867d60a8d5de3996dd25', '7709ac1336e7968d1a61', '42771');
14
- // $pusher->trigger('selfies', 'new-selfie', array('selfie' => 'New selfie!'))
15
-
16
- mail (
'[email protected] ' ,
'Realtime POST ' ,
print_r (
$ _POST ,
TRUE ));
15
+ require 'lib/Pusher.php ' ;
16
+
17
+ $ pusher = new Pusher ('867d60a8d5de3996dd25 ' , '7709ac1336e7968d1a61 ' , '42771 ' );
18
+ $ pusher ->trigger (
19
+ 'selfies ' ,
20
+ 'new-selfie ' ,
21
+ array (
22
+ 'selfie ' => 'New selfie! ' ,
23
+ 'debug ' => print_r ($ _POST , TRUE )
24
+ )
25
+ );
17
26
}
18
27
19
28
?>
You can’t perform that action at this time.
0 commit comments