Download the PHP package orderhandler/apollo-openapi-sdk without Composer

On this page you can find all versions of the php package orderhandler/apollo-openapi-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apollo-openapi-sdk

apollo-openapi-sdk

A SDK For Apollo Open Api

Requirement

  1. PHP >= 7.2
  2. Composer

Installation

Usage

使用(以Base为例):

Documentation

Config参数说明:
参数名 参数说明
PortalAddress Apollo地址
Authorization 申请的token
URL路径参数说明:
参数名 参数说明
env 所管理的配置环境
appId 所管理的配置AppId
clusterName 所管理的配置集群名
namespaceName 所管理的Namespace的名称
key 需要配置的key,在修改、删除配置中使用
operator 操作者,域账号,在删除配置中使用

1.Base

实例化

1.1获取App的环境,集群信息

参数说明:
  • appId 所管理的配置App Id
返回数据示例

2.Namespace

实例化

2.1获取集群下所有Namespace信息

参数说明:
  • url_params 参数详情见顶部URL路径参数说明
返回数据示例

2.2获取某个Namespace信息

参数说明:
  • url_params 参数详情见顶部URL路径参数说明
返回数据示例

2.3创建Namespace

参数说明:
  • appId 所管理的配置AppId
  • requestBody 请求内容,json格式传参,详情如下:
    请求内容列表(Request Body,JSON格式):
    参数名 必选 类型 说明
    name true String Namespace的名字
    appId true String Namespace所属的AppId
    format true String Namespace的格式
    isPublic true boolean 是否是公共文件
    comment false String Namespace说明
    dataChangeCreatedBy true String namespace的创建人
返回数据示例

2.4获取某个Namespace当前编辑人

参数说明:
  • url_params 参数详情见顶部URL路径参数说明
返回数据示例
  • 未锁定 :

  • 被锁定 :

3.Configuration

实例化

3.1新增配置

属性列表:
  • url_params 参数详情见顶部参数说明
  • requestBody 请求内容,json格式传参,详情如下:
请求内容列表(Request Body,JSON格式):
参数名 必选 类型 说明
key true String 配置的key,长度不能超过128个字符。非properties格式,key固定为content
value true String 配置的value,长度不能超过20000个字符,非properties格式,value为文件全部内容
comment false String 配置的备注,长度不能超过1024个字符
dataChangeCreatedBy true String item的创建人,格式为域账号,也就是sso系统的User ID
返回数据示例

3.2修改配置

属性列表:
  • url_params 参数详情见顶部参数说明
  • requestBody 请求内容,json格式传参,详情如下:
请求内容列表(Request Body,JSON格式):
参数名 必选 类型 说明
key true String 配置的key,需和url中的key值一致。非properties格式,key固定为content
value true String 配置的value,长度不能超过20000个字符,非properties格式,value为文件全部内容
comment false String 配置的备注,长度不能超过1024个字符
dataChangeLastModifiedBy true String item的修改人,格式为域账号,也就是sso系统的User ID
返回数据示例

3.3发布配置

属性列表:
  • url_params 参数详情见顶部参数说明
  • requestBody 请求内容,json格式传参,详情如下:
请求内容列表(Request Body,JSON格式):
参数名 必选 类型 说明
releaseTitle true String 此次发布的标题,长度不能超过64个字符
releaseComment false String 发布的备注,长度不能超过256个字符
releasedBy true String 发布人,域账号
返回数据示例

3.4删除配置

属性列表:
  • url_params 参数详情见顶部参数说明
返回数据示例


All versions of apollo-openapi-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package orderhandler/apollo-openapi-sdk contains the following files

Loading the files please wait ....