2017 © Pedro Peláez
 

library aliyun-sdk

A Composer package of aliyun openapi.

image

yarec/aliyun-sdk

A Composer package of aliyun openapi.

  • Monday, July 2, 2018
  • by yarec
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Aliyun-openapi SDK with Composer

安装

添加下述配置至{project}/package.json, (*1)

    "repositories": [
+       {
+           "type": "vcs",
+           "url": "https://github.com/ddingchen/aliyun-openapi"
+       }
    ],
    "require": {
+       "ddingchen/aliyun-openapi": "dev-master"
    },

项目目录下执行下述命令进行安装, (*2)

$ composer update ddingchen/aliyun-openapi

使用示例

use Aliyun\Aliyun;
use Ecs\Request\V20140526\DescribeRegionsRequest;

// openapi的一些必要的全局设定(功能尚不完善)
Aliyun::setUp();

// 下面为示例业务代码,与官方SDK使用无差别
$profile = \DefaultProfile::getProfile("cn-hangzhou", "your-key", "your-secret");
$client = new \DefaultAcsClient($profile);
$request = new DescribeRegionsRequest();
$request->setMethod("GET");
$response = $client->getAcsResponse($request);
var_dump($response);

The Versions

02/07 2018

dev-master

9999999-dev

A Composer package of aliyun openapi.

  Sources   Download

The Development Requires

by ddingchen