Closed KrunchMuffin closed 9 years ago
Nice! I like the idea. Have you tried it yet?
No, I haven't tried it. I will if I get some time.
Actually, this might be a better solution
Here is something... https://github.com/oarevalo/BugLogHQ-utils/blob/master/extensions/rules/pushBulletAlert.cfc
Give it a try, let me know what you think.
Tried it, but not getting the alert. Says it fired and I have put my token in.
This is what I got in return. Not sure why it's not picking up my token?
{"error": {"type":"invalid_request","message":"Access token is missing or invalid.","cat":"(=^・ω・^)y="}}
weird, it's been working for me. Have you tried logging out and clicking the "reset buglog" link on the login page?
yes. will try again tho.
Same, here is a dump of config and payload
can you try posting the message via the command line via curl?
curl -u <your_access_token_here>: -X POST https://api.pushbullet.com/v2/pushes --header 'Content- Type: application/json' --data-binary '{"type": "note", "title": "Note Title", "body": "Note Body"}'
From the docs
To authenticate for the API, use your access token as the username in the HTTP Basic Auth header, along with an empty password.
so I added password=""
and it worked.
Only thing is, I am only getting it on my phone and not all my devices. Thought I read it would do that by default. Have to check again.
So you added password="" to the cfhttp call? huh, it must be a Railo default then. (I was using Railo when coding this). On my tests I got the alert on both my computer and phone.
ya, thats all I did. I sent them an email to ask why it wouldn't broadcast to all devices. Will let you know. Thanks for this!
cool
This might be cool to add as a rule option.
https://github.com/fraxen/cfcgntp/