Giter Site home page Giter Site logo

aliyun-openapi's Introduction

Aliyun-openapi SDK with Composer

安装

添加下述配置至{project}/package.json

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

项目目录下执行下述命令进行安装

$ 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);

aliyun-openapi's People

Contributors

ddingchen avatar

Watchers

James Cloos avatar  avatar

Forkers

yarec

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.