使用api添加与pushbullet的联系 [英] Add contact to pushbullet with the api

查看:178
本文介绍了使用api添加与pushbullet的联系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用api在pushbullet上为我的联系人添加联系人。

I'm trying to add a contact to my contacts on pushbullet using the api.

我将以下json数据与我的POST请求发送到 https://api.pushbullet.com/v2/contacts

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.

当通过api请求我的联系人列表时,它总是为空。我可以使用Windows桌面客户端和网络添加联系人。但是这些联系人只显示在桌面和网络上,而不是在使用api时。

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.

推荐答案

此请求适用于我,你正在使用的请求究竟是什么以及错误请求错误说的是什么?

This request works fine for me, what exactly is the request you are using and what does the bad request error say?

最近用/ v2 / chats替换了联系人,这还没有记录,我应该在文档中替换它们,对不起!

Contacts were recently replaced with /v2/chats, which is not documented yet, I should replace them in the docs, sorry about that!

这篇关于使用api添加与pushbullet的联系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆