filippo-toso/screen-lab
Composer 安装命令:
composer require filippo-toso/screen-lab
包简介
Screen Lab API client
README 文档
README
A simple client for screenlab.io API.
Requirements
- PHP 5.6+
- guzzlehttp/guzzle 6.2+
Installing
Use Composer to install it:
composer require filippo-toso/screen-lab
Using It
use FilippoToso\ScreenLab\Client as ScreenLab;
$client = new ScreenLab('username', 'password', 'access_token');
Get the access token from the API
$access_token = $client->getAccessToken($email, $password);
Refreshes the access token for the provided user
$access_token = $client->refreshAccessToken($email, $password);
Generate a scan of the provided URL
$job = $client ->generateScan($url, $name, $width, $height);
Get a single scan by ID
$scan = $client->getScan($id);
Get the list of all scans
$scans = $client->getScans();
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-05