You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,5 +12,32 @@ details.
12
12
Usage
13
13
----------
14
14
15
-
TestingBot-PHP is distributed with Composer, which means you can include it in your project by adding `testingbot-php` to your composer.json
15
+
TestingBot-PHP is distributed with Composer, which means you can include it in your project:
16
16
17
+
`composer require testingbot/testingbot-php`
18
+
19
+
or edit the `composer.json` file and add:
20
+
21
+
```json
22
+
{
23
+
"require": {
24
+
"testingbot/testingbot-php": ">=1.0.0"
25
+
}
26
+
}
27
+
```
28
+
29
+
To start, create a new `TestingBot\TestingBotAPI` object and pass in the key and secret you obtained from [TestingBot](https://testingbot.com/members/user/edit)
30
+
31
+
```php
32
+
$api = new TestingBot\TestingBotAPI($key, $secret);
33
+
```
34
+
35
+
Now you can use the various methods we've made available to interact with the API:
36
+
37
+
### updateJob
38
+
Updates a Test with Meta-data to display on TestingBot.
39
+
For example, you can specify the test name and whether the test succeeded or failed:
0 commit comments