Skip to content

Instantly share code, notes, and snippets.

View EdwinHoksberg's full-sized avatar

Edwin Hoksberg EdwinHoksberg

View GitHub Profile
@EdwinHoksberg
EdwinHoksberg / pushbullet.php
Created November 15, 2017 09:55
Pushbullet push function
<?php
function pushbullet(string $accessToken, string $title, string $body, string $type = 'note'): \stdClass
{
if (!in_array($type, ['note', 'url'])) {
throw new \Exception('Invalid pushbullet push type');
}
$curl = curl_init();
curl_setopt_array($curl, [

Keybase proof

I hereby claim:

  • I am EdwinHoksberg on github.
  • I am edwinhoksberg (https://keybase.io/edwinhoksberg) on keybase.
  • I have a public key whose fingerprint is 1745 854E FE21 0D65 C0A0 B331 137F 2999 5357 A70A

To claim this, I am signing this object: