问题
I'm trying to add a contact to my contacts on pushbullet using the api.
I send following json data with my POST request to https://api.pushbullet.com/v2/contacts
{ "name": "some name", "email": "test@example.com" }
According to the documentation this should add the contact. Instead I get a bad request error.
When requesting my list of contacts via the api, it is always empty. I can add contacts using the Windows desktop client and via the web. However those contacts only show up on the desktop and on the web, not when using the api.
回答1:
This request works fine for me, what exactly is the request you are using and what does the bad request error say?
Contacts were recently replaced with /v2/chats, which is not documented yet, I should replace them in the docs, sorry about that!
来源:https://stackoverflow.com/questions/32287241/add-contact-to-pushbullet-with-the-api