新的 basecamp api 告诉我此地址没有 basecamp 帐户 [英] New basecamp api tells me there's no basecamp account at this address

查看:23
本文介绍了新的 basecamp api 告诉我此地址没有 basecamp 帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 basecamp api 的新手,在尝试最简单的示例时:

I'm new to basecamp api, and while trying out the simplest example:

curl -u user:pass -H 'User-Agent: MyApp (yourname@example.com)' https://basecamp.com/999999999/api/v1/projects.json

我收到错误消息:

There's no Basecamp account at this address. Sign in to Launchpad to see your accounts.

我用我的大本营电子邮件地址替换了用户,并将通行证作为密码.我是不是弄错了什么?

I replaced the user with my basecamp email address, and the pass as the password.Am I putting something wrong?

提前致谢!

推荐答案

在我看来,您必须指定 user-agent 您的电子邮件地址 或应用程序名称您的电子邮件地址并提及您的 basecamp 帐户 ID(登录 basecamp 帐户后,ID 以数字形式显示在 url 上)

You have to specify user-agent either your email address or app name, in my opinion input your email address and mention your basecamp account id (after login in basecamp account, id shows on url in number form )

example :
curl -u xyz@example.com:xxxxxx -H 'User-Agent: xyz@example.com' https://basecamp.com/1213136/api/v1/projects.json

最后你得到你的json!!

And finally you get your json!!

这篇关于新的 basecamp api 告诉我此地址没有 basecamp 帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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