2017 © Pedro Peláez
 

library aliyun-sdk

SDK for aliyun service development

image

axios/aliyun-sdk

SDK for aliyun service development

  • Thursday, July 26, 2018
  • by AxiosCros
  • Repository
  • 1 Watchers
  • 11 Stars
  • 94 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 14 Versions
  • 29 % Grown

The README.md

English | 简体中文, (*1)

The set of Aliyun Cloud Service SDK ,Support for composer library., (*2)

Latest Stable Version License, (*3)

Aliyun Cloud official documentation center, (*4)

QQ Group:521797692, (*5)

Env

  • PHP 7.1+.
  • CURL extension.

Install

composer require axios/aliyun-sdk

Development Plan

How To Use

aliyun-sdk/example, (*6)

  • require composer autoload
require_once __DIR__. "/../vendor/autoload.php";
  • auth
$access_id = "testAccessKeyId";
$access_secret = "testAccessKeySecret";

\aliyun\sdk\Aliyun::auth($access_id, $access_secret);
  • Setting Region
\aliyun\sdk\Aliyun::region('cn-shanghai');

// or
$request = Vod::V20170321()->GetCategories();
$request->region("cn-shanghai);

// get region
$request->region();
  • Request

$response = Vod::V20170321()->GetCategories() ->setCateId(-1) ->request(); // or AliyunServices::Vod20170321()->GetCategories() ->setCateId(-1) ->request();
  • Get Response Content
dump($response->getContent());

Customized Request


use aliyun\sdk\core\lib\Request; class Example { protected static $product = "<ProductName>"; protected static $service_code = "<ProductServiceCode>"; /** * @var string * @example \aliyun\sdk\core\credentials\AccessKeyCredential * @example AccessKeyCredential */ protected static $credential = "<Credential>"; protected static $version = "<VersionDate>"; protected static $endpoints = [ "regions" => [], "public" => [], "internal" => [] ]; /** * @param $action * * @return Request */ public static function client($action = null) { $request = new Request(); $request->product(self::$product); $request->version(self::$version); $request->action($action); $request->endpoints(self::$endpoints); $request->credential(self::$credential); $request->serviceCode(self::$service_code); return $request; } }

``` php, (*7)

$request = Example::client();, (*8)

$request->method("POST");, (*9)

$response = $request->params("key", "value") ->headers("header_name", "header_content") ->options("guzzle_option_name", "option_value") ->request();, (*10)

$result = $response->getContent();, (*11)

```, (*12)

Request Option, (*13)

License

licensed under the Apache License 2.0, (*14)

The Versions

26/07 2018

dev-master

9999999-dev https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service development

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

09/07 2018

0.5.7

0.5.7.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service development

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

02/07 2018

0.5.6

0.5.6.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

02/04 2018

0.5.5

0.5.5.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

30/03 2018

0.5.3

0.5.3.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

30/03 2018

dev-build

dev-build https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

20/03 2018

0.5.2

0.5.2.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

19/03 2018

0.5.1

0.5.1.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

15/03 2018

0.5.0

0.5.0.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

07/03 2018

0.4.1

0.4.1.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

02/03 2018

0.3.1

0.3.1.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

02/03 2018

0.3.0

0.3.0.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

01/03 2018

0.2.0

0.2.0.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk

27/02 2018

0.1.0

0.1.0.0 https://github.com/AxiosCros/aliyun-sdk

SDK for aliyun service develop

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0

 

The Development Requires

by axios

aliyun aliyun-service aliyun-sdk