Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oauth Stocktwits API身份验证无效/未知客户端错误_Oauth_Stocktwits - Fatal编程技术网

Oauth Stocktwits API身份验证无效/未知客户端错误

Oauth Stocktwits API身份验证无效/未知客户端错误,oauth,stocktwits,Oauth,Stocktwits,我正在使用这些文档了解如何使stocktwits oauth正常工作: 是的,我一直在使用我的消费者密钥来代替客户id,这与以下内容有关: api.stocktwits.com/api/2/oauth/authorize?client\u id=&response\u type=token&redirect\u uri=www.example.com&scope=read、watch\u list、publish\u messages、publish\u watch\u list、follo

我正在使用这些文档了解如何使stocktwits oauth正常工作:

是的,我一直在使用我的消费者密钥来代替客户id,这与以下内容有关:

api.stocktwits.com/api/2/oauth/authorize?client\u id=&response\u type=token&redirect\u uri=www.example.com&scope=read、watch\u list、publish\u messages、publish\u watch\u list、follow\u users、follow\u stocks

当我尝试在chrome、firefox或命令行中访问此url时,我不断遇到以下错误:

错误:无效的\u客户端未知客户端

有什么建议吗?不确定除了客户机id/消费者密钥之外,我最初还需要指定什么


谢谢

看起来您的客户id不正确。当您转到位于开发者门户网站“我的应用”部分的注册应用时,您可以获取您的客户端id:

然后单击应用程序上的“查看密钥和详细信息”,然后您的客户id应为消费者密钥将此密钥放入url:

api.stocktwits.com/api/2/oauth/authorize?client\u id=将消费者密钥放在此处&response\u type=token&redirect\u uri=www.example.com&scope=read,watch\u list,publish\u messages,publish\u watch\u list,follow\u users,follow\u stocks

如果您有任何其他问题或仍然收到此回复,请直接通过电子邮件发送支持: