channelengine/channel-api-client-php 问题修复 & 功能扩展

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

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

channelengine/channel-api-client-php

最新稳定版本:2.13.0

Composer 安装命令:

composer require channelengine/channel-api-client-php

包简介

ChannelEngine API for channels

README 文档

README

No Maintenance Intended

Deprecation of the Channel API client libraries

This library is no longer supported by ChannelEngine. To build your own library via OpenAPI Generator, using your programming language of choice, check out the Channel API: API clients article in our Help Center.

ChannelEngine’s APIs follow the OpenAPI/Swagger specifications, which you can find in our API reference. (At the top of the swagger page switch to 'ChannelEngine Channel API')

Additional information for developers

For detailed information on ChannelEngine’s APIs, go to the REST APIs category in our Help Center.

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "require": {
    "channelengine/channel-api-client-php": "*"
  }
}

Then run composer install

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

use ChannelEngine\ApiClient\Configuration;
use ChannelEngine\ApiClient\ApiException;
use ChannelEngine\ApiClient\Api\OrderApi;

$apiConfig = Configuration::getDefaultConfiguration();
$apiConfig->setHost('https://demo.channelengine.net/api');
$apiConfig->setApiKey('apikey', 'xxxxxxxxxxxx');

$orderApi = new OrderApi(null, $apiConfig);

try {
	$response = $orderApi->orderGetNew();
	dd($response);
} catch (ApiException $e) {
	// In case of a non-2xx status an exception will be trown.
	// However, we can check getResponseBody() to get the deserialized response.
	echo($e->getMessage());
	dd($e->getResponseBody());
}

function dd($var) {
	echo("<pre>");
	print_r($var);
	echo("</pre>");
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: unlicense
  • 更新时间: 2018-02-22