Flickr - Scribe Java - 无法使用该演示来获取令牌

时间:2017-07-10 19:34:26

标签: java oauth flickr scribe

在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的最新版本)

0 个答案:

没有答案