承接 arrowsphere/public-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

arrowsphere/public-api-client

最新稳定版本:0.11.23

Composer 安装命令:

composer require arrowsphere/public-api-client

包简介

The official PHP client for ArrowSphere's public API

README 文档

README

Latest Stable Version Minimum PHP Version Build Status

This package provides a PHP client for ArrowSphere Cloud's public API. It should be the only way to make calls to ArrowSphere Cloud's API with PHP code.

To use this package, you need valid access to ArrowSphere Cloud, with a valid API key.

Installation

Install the latest version with

$ composer require arrowsphere/public-api-client

Basic usage

<?php

use ArrowSphere\PublicApiClient\PublicApiClient;

const URL = 'https://your-url-to-arrowsphere.example.com';
const API_KEY = 'your API key in ArrowSphere';

$client = (new PublicApiClient())
    ->setUrl(URL)
    ->setApiKey(API_KEY)
    ->setDefaultHeaders([
        'myHeader' => 'myValue',
    ])
;

$whoami = $client->getWhoamiClient()->getWhoami();
echo "Hello " . $whoami->getCompanyName();

Specific API clients

General clients

Catalog clients

Customers clients

Consumption clients

Licenses clients

Campaigns clients

Cart clients

Notification clients

Support clients

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 5
  • Forks: 23
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-18