在ScribeJava上使用Flickr的示例代码:
final String apiKey = "xxx";
final String apiSecret = "xx";
final OAuth10aService service = new ServiceBuilder(apiKey).apiSecret(apiSecret)
.debug()
.build(FlickrApi.instance(FlickrApi.FlickrPerm.DELETE));
final Scanner in = new Scanner(System.in);
System.out.println("=== Flickr's OAuth Workflow ===");
System.out.println();
// Obtain the Request Token
System.out.println("Fetching the Request Token...");
final OAuth1RequestToken requestToken = service.getRequestToken();
我从Flickr获得了一个错误页面,并且通过调试,我收到了以下错误 响应状态码:411
我做错了什么? (scribe-java 4.1.2的最新版本)