Add contact to pushbullet with the api

折月煮酒 提交于 2019-12-13 04:39:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!