afosto/io-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

afosto/io-sdk

最新稳定版本:1.13.32

Composer 安装命令:

composer require afosto/io-sdk

包简介

Afosto IO SDK

README 文档

README

The Afosto.io SDK for PHP makes it easy for developers to access and use afosto-io services.

Getting Started

If you run into any problems please do not hesitate to open an issue at this repository.

Docs

API documentation can be found at https://developers.afosto.io.

Prerequisites

To get started you'll need:

  • a free afosto.io account (signup here)
  • make sure you have composer installed to get started quickly
  • php 7

Installing

You can easily install the client through composer:

composer require afosto/io-sdk

Built with

  • JanePHP - For generation the api client
  • Swagger - API management tool
  • Redoc - Great API documentation tool

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Example

Connecting with the SDK is easy. You instantiate the sdk with client credentials, and you are ready to make requests additionaly you can add the scopes you want you your request

$scopes = ['iam:users:create'];
$client = new \Afosto\Sdk\Sdk("1234","123456",$scopes);
$user = $client->getAuthorizedClient()->createUser(
    (new \Afosto\Sdk\Model\IamUserModel)
        ->setEmail("info@afosto.com")
        ->setFirstName("info")
        ->setLastName("afosto")
);

//prints the created user id
print_r($user->getId());

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-23