progresivjose/arc-api-connector
最新稳定版本:2.0
Composer 安装命令:
composer create-project progresivjose/arc-api-connector
包简介
A simple Guzzle Wrapper with some specific params to connect to Arc XP API
README 文档
README
To install the package you should run the followin command
composer require progrevisjose/arc-api-connector:1.0
Usage
First you must initialize the class
import GuzzleHttp\Client; $client = new \Progresivjose\ArcApiConnector(new Client, 'ARC API SECRET TOKEN');
Then you can start making the requests
//making a simple request $this->client->get('https://example.test'); //passing params to the request $this->client->get('https://example.test', ['foo' => 'bar']); //example of post as form_params $this->client->post('https://example.test'. ['name' => 'John', 'lastname' => 'Doe']); //example of post as json body $this->client->post('http://example.test', ['name' => 'John', 'lastname' => 'Doe'], 'json'); //example of post as multipart $this->client->post('http://example.test', ['name' => 'John', 'lastname' => 'Doe'], 'multipart');
Available methods
- get
- post
- put
- delete
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-25