filippo-toso/browser-stack

BrowserStack API 客户端

v1.0.2 2017-08-21 21:47 UTC

This package is auto-updated.

Last update: 2024-08-29 03:47:28 UTC


README

browserstack.com API 的简单客户端。

要求

  • PHP 5.6+
  • guzzlehttp/guzzle 6.2+

安装

使用 Composer 安装

composer require filippo-toso/browser-stack

使用方法

use FilippoToso\BrowserStack\Client as BrowserStack;

$client = new BrowserStack('username', 'access_key');

// Get list of available OS and browsers
$browsers = $client->getBrowsers();

// Request the generation of a screenshot
$url = 'https://efes.to/';
$job = $client->generateScreenshots($url, $browsers);

// Get the list of screenshots and their states
$result = $client->getJob($job['job_id']);