简体   繁体   English

如何获得用户的访问令牌?

[英]How do I get the access token for a user?

I am having problem figuring out, how can I do this ? 我在找出问题时该怎么办?

My app wants authorization, so that it is able to post tweets on user's behalf. 

How does my web-app generate this page ? 我的网络应用程序如何生成此页面?

在此处输入图片说明

I understand, the need of Access Token to tweet on user's behalf, how do I get them ? 我了解,需要Access Token代表用户发推文,我如何获取它们?

I've had better luck using the Scribe project . 使用Scribe项目的运气更好。 Follow this example for an example of Twitter authentication. 请遵循此示例以获取Twitter身份验证的示例。 The example is currently broken though unless you remove line 50. 尽管除非删除第50行,否则该示例当前已损坏。

request.addBodyParameter("status", "this is sparta! *");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM