进行API调用之前如何获取authToken

问题描述

尝试使用上述的get-user-search进行configurations API调用

import requests
r = requests.head(url)
print(r)

但是当我致电//pom.xml <dependency> <groupId>org.twitter4j</groupId> <artifactId>twitter4j-core</artifactId> <version>[4.0,)</version> </dependency> //TwitterService.java @Service public class TwitterService { private Twitter twitter; @postconstruct() public void init() { this.twitter = new TwitterFactory(// new ConfigurationBuilder()// .setDebugEnabled(true)// .setoAuthConsumerKey(CONSUMER_KEY)// .setoAuthConsumerSecret(CONSUMER_Secret)// .setoAuthAccesstoken(ACCESS_KEY)// .setoAuthAccesstokenSecret(ACCESS_Secret)// .build()).getInstance(); } public ResponseList<User> testUserSearch(String query) throws TwitterException { return this.twitter.searchUsers(query,1); } } 时,我得到了以下提示我想念什么?

testUserSearch

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)