Skip to content

Instantly share code, notes, and snippets.

@PhilETaylor
Created June 8, 2015 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilETaylor/5347fb3d1dada1fcf361 to your computer and use it in GitHub Desktop.
Save PhilETaylor/5347fb3d1dada1fcf361 to your computer and use it in GitHub Desktop.
<?
$TheUsersToken = '.....';
$http = new Zend_Http_Client('https://api.pushbullet.com/v2/pushes');
$http->setHeaders('Authorization', 'Bearer ' . $TheUsersToken);
$http->setParameterPost('type', 'note');
$http->setParameterPost('title', 'Someone logged in as you at myJoomla.com');
$http->setParameterPost('body', 'blah blah blah');
$res = $http->request('POST');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment