承接 theaamgroup/api-package 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

theaamgroup/api-package

最新稳定版本:1.6.3

Composer 安装命令:

composer require theaamgroup/api-package

包简介

Provides a PHP interface for The AAM Group's RESTful API.

README 文档

README

This library provides an interface to AAM's API.

Getting Started

These instructions assume you already have an API key with access to use AAM's API.

The API library can be added to a PHP project using Composer.

composer require theaamgroup/api-package

It's recommended to use some sort of autoloading function for the library's classes, but you can also require/include the files you need. You can see usage of this in the examples folder.

Authentication

All endpoints, with the exception of the Prop 65 endpoint, will require a valid API key passes as the X-API-KEY header. If your request is not authenticated correctly, you will receive an error response with 401 as the status code and "Invalid API key" as the error message.

Perform your authentication by passing your API key to the Auth constructor, then pass the Auth object to the endpoint you want to use. View an example.

Sample Code

The examples folder contains sample code for the functions of every endpoint.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-09