sohoer.blogg.se

Api pushbullet
Api pushbullet







api pushbullet

  • Add the function into the script then call it with the message you want to send!.
  • The first needs to be set to the channel tag you got in step 3, and the second to the access token string you got in step 2.
  • OK now add two variables to your script, $pb_config_channel_tag and $pb_config_api_key.
  • You can see that in the url of the channel () The bit you’ll need for the function to work is the “tag” of the channel.
  • Finally create a channel where you want notifications to appear.
  • Go here and click the “Create Access Token” button, then take a copy of the text you get – it’ll look like this: o.abcdefgh0123456789ijklmnopqrstuv
  • Now get an API key so your script can send messages.
  • api pushbullet api pushbullet

  • There are clients on the website for consuming your notifications of course, grab and login to one of those next.
  • If you haven’t got one yet, create a Pushbullet account – that’s easy, do it here:.
  • Then you just have to subscribe your Pushbullet client to that channel to get notifications whenever you need. We construct a simple json packet that contains the information and the channel on which it should appear. The simple principal of this is that we’re going to get PowerShell to send a message making use of the REST api that Pushbullet exposes. My scripts send me lots of emails and sometimes I need to act on information quickly – and sometimes I even take a holiday and someone else needs to do that instead… wouldn’t it be awesome to be able to “subscribe” to those script notifications if and when you need to see them? Well here’s how I do it using Pushbullet!









    Api pushbullet