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

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

报告相同问题?

悬赏问题

  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能