inserve/cloud-factory-api-php
最新稳定版本:0.1
Composer 安装命令:
composer require inserve/cloud-factory-api-php
包简介
A PHP wrapper for the Cloud Factory API
README 文档
README
PHP wrapper for the Cloud Factory API
Requirements
Status
Cloud Factory Docs
Installation
composer require inserve/cloud-factory-api-php
Usage example
use GuzzleHttp\Client; use Inserve\CloudFactoryAPI\CloudFactoryAPIClient; require 'vendor/autoload.php'; $guzzle = new Client([ 'base_uri' => 'https://portal.api.cloudfactory.dk', ]); $cloudFactory = new CloudFactoryAPIClient( client: $guzzle, ); $accessToken = $api->exchangeRefreshToken('refresh.token'); $cloudFactory->setAccessToken($accessToken); if (! $cloudFactory->isAuthenticated()) { return; } $customerList = $cloudFactory->getCustomers([ 'PageSize' => 100 ]); foreach ($customerList->getResults() as $customer) { echo $customer->getName() . PHP_EOL; }
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-15