duancao2082 2013-02-18 17: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-01 19: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

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部