Skip to content

Commit

Permalink
Expanded readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronware committed Aug 19, 2015
1 parent 0c3df34 commit 15151ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Browserstack Screenshot API PHP Library
============

An easy-to-use PHP library for the Browserstack Screenshots API. Working examples included.
An easy-to-use PHP library for the Browserstack Screenshots API forked from alexschwarz89/browserstack.

Working examples included.

## Install

Expand All @@ -22,15 +24,15 @@ Run `composer install`.
#### Get an array of available browsers

```php
use Alexschwarz89\Browserstack\Screenshots\ScreenshotsAPI;
use Linchpin\Browserstack\Screenshots\ScreenshotsAPI;
$screenshots_api = new ScreenshotsAPI( 'username', 'password' );
$browser_list = $api->get_browsers();
```

#### Generate a screenshot
```php
use Alexschwarz89\Browserstack\Screenshots\Api;
use Alexschwarz89\Browserstack\Screenshots\Request;
use Linchpin\Browserstack\Screenshots\Api;
use Linchpin\Browserstack\Screenshots\Request;
$screenshots_api = new ScreenshotsAPI( 'account', 'password' );
$request = Request::build_request( 'http://www.example.org', 'Windows', '8.1', 'ie', '11.0' );
$response = $screenshots_api->send_request( $request );
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"autoload": {
"psr-4": {
"Alexschwarz89\\Browserstack\\": "src/"
"Linchpin\\Browserstack\\": "src/"
}

}
Expand Down

0 comments on commit 15151ee

Please sign in to comment.