我正在做一个推特项目,我想使用OAuth,但我不知道从哪里获得消费者密钥和密钥。
我怎样才能得到这些呢?
发布于 2011-07-29 22:55:55
要获取Consumer Key和Consumer Secret,您必须通过以下方式在Twitter中创建应用程序
https://developer.twitter.com/en/apps
然后,您将被带到包含Consumer Key和Consumer Secret的页面。
希望这些信息能澄清推特的OAuth要点:
发布于 2012-09-09 08:43:32
- If you don't already have an account, you can login with your normal Twitter credentials
有关将用于连接
的应用程序的详细信息,请转至"Create an app"
- Your application **name must be unique.** If someone else is already using it, you won't be able to register your application until you can think of something that isn't being used.
将与您的消费者密钥和消费者机密一起显示。
- The page will then refresh on the "Details" tab with your new access tokens. You can recreate these at any time if you need to.
默认情况下,您的应用程序将被授予只读访问权限。要更改此设置,请转到设置选项卡,并在“应用程序类型”部分中更改所需的访问级别。
现有应用程序
要获取现有应用程序的消费者令牌和访问令牌,请转到My applications (可从右上角的菜单中访问)。
发布于 2014-03-08 14:46:42
步骤1.转到https://dev.twitter.com/apps
步骤2.创建应用程序(填写表单)
步骤3.必要时更改权限(取决于您是否只想读取、写入或执行)
步骤4.转到API密钥部分并单击generate ACCESS TOKEN。
5年后才回答:)
现在您有了这些令牌,这就是您所需要的。
'oauth_access_token' => Access token
'oauth_access_token_secret' => Access token secret
'consumer_key' => API key
'consumer_secret' => API secrethttps://stackoverflow.com/questions/1808855
复制相似问题