2017 © Pedro Peláez
 

library aliyun-sdk

SDK for aliyun service develop base on axios

image

yoho/aliyun-sdk

SDK for aliyun service develop base on axios

  • Wednesday, April 18, 2018
  • by Yohox
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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

Latest Stable Version License, (*2)

Aliyun Cloud OSS official documentation center, (*3)

Env

  • PHP 7.0+.
  • CURL extension.

Install

composer require axios/aliyun-sdk

Development Plan

  • VOD -> Done
  • CDN -> Done
  • OSS -> Base on aliyun/aliyun-oss-php-sdk
  • SMS -> base on flc/dysms
  • MTS -> Done
  • ECS -> in development
  • APIGateway -> in development
  • ......

How To Use

  • 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');
  • Request
$response = \aliyun\sdk\vod\Vod::GetCategories()
    ->setCateId(-1)
    ->setPageNo(4)
    ->setPageSize(10)
    ->request();

// Or Request like this
$request = \aliyun\sdk\vod\Vod::GetCategories();
$request->setCateId(-1);
$request->setPageNo(4);
$request->setPageSize(10)
$response = $request->request();
  • Get Response Content
dump($response->getContent());

Customized Request

use aliyun\sdk\vod\request\VodCommon;

class Example extends VodCommon {
    public function doSomething(){
        //setting Action
        $this->setActionName("action_name");

        //setting parameter
        $this->setParam("param_name","param_value");

        return $this->request();
    }
}

License

licensed under the Apache License 2.0, (*4)

The Versions

18/04 2018

dev-master

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

SDK for aliyun service develop base on axios

  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