creode/business-central-oauth2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

creode/business-central-oauth2

最新稳定版本:1.1.0

Composer 安装命令:

composer require creode/business-central-oauth2

包简介

A PHP package for seamless OAuth2 authentication with Microsoft Dynamics 365 Business Central, offering a streamlined integration and secure access to Business Central APIs.

README 文档

README

This package provides Microsoft Dynamics 365 Business Central OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

You can install the package via composer:

composer require creode/business-central-oauth2

Usage

To use this package, you must first configure it by setting the appropriate values in the configuration file. Once configured, you can use the package as follows:

use Creode\BusinessCentralOauth2\Providers\BusinessCentralProvider;

$provider = new BusinessCentralProvider([
    'clientId' => 'your-client-id',
    'clientSecret' => 'your-client-secret',
    'redirectUri' => 'your-redirect-uri',
    'urlAccessToken' => 'your-token-url',
]);

$accessToken = $provider->getAccessToken('client_credentials', [
    'scope' => 'your-scope',
]);

$request = $provider->getAuthenticatedRequest(
    'GET',
    'https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environmentName}/',
    $accessToken
);

$response = $provider->getParsedResponse($request);

Testing

To run the tests for this package, use the following command:

./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email security@creode.co.uk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-08