duancao2082 2013-02-19 01:51
浏览 27
已采纳

私有包装器定制为与公共应用程序一起使用 - XERO API?

I'm trying to customize the PHP Private App wrapper on Github to work with Public apps.

I see that the class by default calls this class:

$this->signature_method = new OAuthSignatureMethod_Xero($this->public_cert, $this->private_key);

which is then extended by this class - OAuthSignatureMethod_RSA_SHA1.

I know that public apps use HMAC_SHA1 so OAuthSignatureMethod_Xero class actually needs to extend OAuthSignatureMethod_HMAC_SHA1.

What i'm unsure of is what functions go inside this:

class OAuthSignatureMethod_Xero extends OAuthSignatureMethod_HMAC_SHA1 {
   - ?
   - ?
}

Everything else in the class looks like it should work fine with private,public or partner apps.

Has anyone done this? or know how to?

I'm quite new to Oauth and APi's so I'm struggling to customize it myself.

  • 写回答

1条回答 默认 最新

  • douao7937 2013-05-02 03:42
    关注

    I am using the Xero-API-PHP-CLASS, https://github.com/mediabeastnz/Xero-API-PHP-Class

    its pretty easy to use. I tested with a public type an works fine. Cheers, Christian

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?