Twitter消费者密钥和密钥之间的区别是什么? [英] Whats the difference between Twitter consumer Key and Secret Key?

查看:152
本文介绍了Twitter消费者密钥和密钥之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Twitter开发的新手。现在,我提供了消费者密钥和密钥。但我不知道在哪个地方使用哪个。用于登录的简单JavaScript代码无效。我其实想要推特游戏的得分。有人请指导我。谢谢。

I am new to Twitter Development. Right now, I have both consumer key and secret key provided to me. But I don't know where to use which one. A simple javascript code for loging in is not working. I actually want to tweet the score of the game. Anyone please guide me. Thanks.

推荐答案

Twitter有一个很棒的入门指南。 https://dev.twitter.com/start

Twitter has a great getting started guide. https://dev.twitter.com/start

来自twitter的网站:

From twitter's site:


OAuth设置

OAuth settings

您的应用程序的OAuth设置。保持消费者秘密的秘密。在您的应用程序中,此密钥永远不应该是人类可读的。

Your application's OAuth settings. Keep the "Consumer secret" a secret. This key should never be human-readable in your application.

您的访问令牌

使用访问令牌字符串作为您的oauth_token和访问令牌秘密作为您的oauth_token_secret用您自己的Twitter帐户签署请求。不要与任何人分享你的oauth_token_secret。

Use the access token string as your "oauth_token" and the access token secret as your "oauth_token_secret" to sign requests with your own Twitter account. Do not share your oauth_token_secret with anyone.

这篇关于Twitter消费者密钥和密钥之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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