dynamics-tools/dynamics-web-api-php-wrapper 问题修复 & 功能扩展

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

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

dynamics-tools/dynamics-web-api-php-wrapper

最新稳定版本:1.0.1.1

Composer 安装命令:

composer require dynamics-tools/dynamics-web-api-php-wrapper

包简介

PHP 8.1 wrapper for Microsoft Dynamics Web API

README 文档

README

Introduction

This package is not intended to be an in-depth SDK for Microsoft Dynamics. Its main purpose is to simplify the process of authentication and request setup for users of Dynamics Web API.

Authentication

We utilize server-to-server OAuth authentication via an application user. To successfully authenticate, you'll need to set the following environment variables:

APPLICATION_ID: Application (Client) ID

APPLICATION_SECRET: Application (Client) Secret

TENANT_ID: Tenant ID

INSTANCE_URL: Dynamics (Instance) URL

API Documentation

The API documentation for this version of the Dynamics Web API can be found here.

Usage Example

Ensure the environment variables are set before running the example.

Using the Client

use DynamicsWebApi\Client;
use DynamicsWebApi\ClientFactory;

require_once 'vendor/autoload.php';

$client = Client::createInstance();
$response = $client->request('/CloneAsSolution', 'POST', [
'ParentSolutionUniqueName' => 'MySolution',
'DisplayName' => 'MySolution',
'VersionNumber' => '1.12.0.0'
]);

$responseJson = json_decode($response->getBody()->getContents(), true);
echo $responseJson['SolutionId'];

Using the Helper

use DynamicsWebApi\Helper;

require_once 'vendor/autoload.php';

$helper = new Helper();
$helper->updateEntity('pluginassemblies', '38938383-383838-392912-192882', ['name' => 'MyPluginAssembly'], '9.2');
$helper->publishAllChanges();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固