This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = $_GET['id']; | |
#prep the bundle | |
$msg = array | |
( | |
'body' => 'Body Of Notification', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cards":[{"id":"2","author_id":"1","title":"aaron-burden-304587","data_format":"image","card_type":"greeting_welcome","video_url":"","text":"greeting_welcome_text","slug":"aaron-burden-304587","credits":"PC: Unsplash.com","created":"2018-05-06 00:00:00","updated_at":"2017-12-16 17:11:16","solution_reply_id":null,"ip_address":"0","image_url":"https:\/\/res.cloudinary.com\/pokurivijay\/image\/upload\/v1524738435\/titbits\/a1o7QAR_460swp.jpg","thumbnail_url":"https:\/\/res.cloudinary.com\/pokurivijay\/image\/upload\/v1524738435\/titbits\/a1o7QAR_460swp.webp","age":"34","gender":"1","category":"","likes":"0","status":"1","reactions":"1F602,1F60D,1F62D,1F621,1F631"},{"id":"257","author_id":"1","title":"mika-matin-139247","data_format":"image","card_type":"meme","video_url":"","text":".","slug":"mika-matin-139247","credits":"PC: Unsplash.com","created":"2018-05-06 00:00:00","updated_at":"2017-12-16 17:11:16","solution_reply_id":null,"ip_address":"0","image_url":"https:\/\/res.cloudinary.com\/pokurivijay\/image\/up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a Test Gist. |