Whats the difference between Twitter consumer Key and Secret Key?

若如初见. 提交于 2020-01-03 17:06:02

问题


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.


回答1:


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

From twitter's site:

OAuth settings

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

Your access token

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.



来源:https://stackoverflow.com/questions/6839550/whats-the-difference-between-twitter-consumer-key-and-secret-key

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