在php中生成auth签名

时间:2016-05-01 08:55:38

标签: php oauth

我有这些数据:

  • 消费者密钥
  • 消费者秘密
  • 令牌
  • 令牌秘密

我需要生成一个用于标题的签名。

我的应用程序是在PHP中,我尝试使用PHP: OAuth::generateSignature()生成签名,如下所示:

<div class="wrapper">
     <div class="left">some img here with 100% width and some text which dispaly on hovering over the image</div>
     <div class="right">some content here</div>
</div>

但签名不起作用,我收到错误“身份验证失败.API凭据不正确。”

生成要在标头中使用的签名的正确方法是什么?

0 个答案:

没有答案