Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($_GET['auth'] == 'my super secret password ;D'){
- require_once 'config.php';
- require_once 'mirror-client.php';
- require_once 'google-api-php-client/src/Google_Client.php';
- require_once 'google-api-php-client/src/contrib/Google_MirrorService.php';
- require_once 'util.php';
- $client = get_google_api_client();
- $client->setAccessToken('{"access_token":"blah","token_type":"Bearer","expires_in":3600,"id_token":"blah","refresh_token":"blah","created":1391407325}');
- $new_timeline_item = new Google_TimelineItem();
- $new_timeline_item->setText($_GET['message']);
- $notification = new Google_NotificationConfig();
- $notification->setLevel("DEFAULT");
- $new_timeline_item->setNotification($notification);
- $mirror_service = new Google_MirrorService($client);
- insert_timeline_item($mirror_service, $new_timeline_item, null, null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement