定制 doehnert/oauth2-myob 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

doehnert/oauth2-myob

最新稳定版本:v1.0.0

Composer 安装命令:

composer require doehnert/oauth2-myob

包简介

This package provider MYOB OAuth 2.0 support for the PHP Leagu's OAuth 2.0 Client

README 文档

README

This package provides MYOB OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

composer require doehnert/oauth2-myob Obtaining an MYOB access key To get a key you will need to be part of the MYOB Developer Program (https://developer.myob.com/program/become-a-myob-developer-partner/) After you obtain an account, log in and click the "Developer" tab of my.myob.com.au Click the Register App button to create a key The redirect API must be exactly the same (including the http:// or https://) as the redirectUri below and is the URL of your application

Usage

Usage is the same as The League's OAuth client, using \Doehnert\OAuth2\MYOBClient\Provider\MYOB as the provider

MYOB's APIs are throttled - the documented limit is 8 calls per second (and a large number per day) but the throttling appears to be buggy and you will likely find that you receive API Access Limit Exceeded errors no matter what limits you impose unfortunately. However you will be able to create an application that works fairly reliably if you follow the guidelines under Sample Application (below) qnd add a failsafe that detects the throttling, pauses and retries.

Instantiation $provider = new \SprintDigital\OAuth2\MYOBClient\Provider\Myob([ 'clientId' => 'yourId', // The Key assigned to you by MYOB 'clientSecret' => 'yourSecret', // The Secret assigned to you by MYOB 'redirectUri' => 'yourRedirectUri' // The Redirect Uri you specified for your app on MYOB ]);

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固