Hi- I’m a relative newbie to Smart app coding and Groovy.
I would like to make an HTTP post to the Pushbullet API, which requires your API key as a password.
I have tried this:
def pbNote = [
body: [“type”:“note”, “title”:“Garage Warning”, “body”:"$msg"]
But I get an “Unauthorized” exception.
Any ideas? I don’t need to see the response, I’m not going to bother handling an error (though, I would prefer than an exception doesn’t crash the program, and it just tries again).