OAuth requestToken for freelancer.com api

有没有人使用过freelancer.com api?我甚至无法为它检索requestToken。我想要它为Android。我尝试使用路标库,但它给出以下错误   oauth.signpost.exception.OAuthNotAuthorizedException:授权失败(服务器回复401)。如果使用者密钥不正确或签名不匹配,则会发生这种情况。 我正在使用正确的消费者密钥。相同的方法适用于twitter。     
已邀请:
迟到的回复,但你有没有得到它的工作? 那么,它适用于Twitter,但不适用于自由职业者? 我发现自由职业者的一件事是,如果在头部发送它们,则不会使用OAuth参数。您需要在GET或POST中提供OAuth参数。另一方面,Twitter建议通过标题发送这些参数。     
早期版本的路标仅在标头中实现OAuth参数。 freelanecer.com api期望参数在查询字符串中。最新版本的Signpost现在可以在查询字符串中实现OAuth参数。 以下是服务构建器的相关代码:
  /**
  * Configures the signature type, choose between header, querystring, etc. Defaults to Header
  *
  * @param scope The OAuth scope
  * @return the {@link ServiceBuilder} instance for method chaining
  */
  public ServiceBuilder signatureType(SignatureType type)
  {
     Preconditions.checkNotNull(type, "Signature type can't be null");
     this.signatureType = type;
    return this;
  }

  Service = new ServiceBuilder()
                    .provider(FreelancerApi.class)
                    .apiKey(consumer)
                    .apiSecret(secret)
                    .callback("oob")
                    .signatureType(SignatureType.QueryString)
                    .build();
    

要回复问题请先登录注册