PHP code example of testingbot / testingbot-php

1. Go to this page and download the library: Download testingbot/testingbot-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

testingbot / testingbot-php example snippets


$api = new TestingBot\TestingBotAPI($key, $secret);

$api->getBrowsers();

$api->getDevices();

$api->getAvailableDevices();

$api->getDevice($deviceID);

$api->getUserInfo();

$api->updateUserInfo(array('first_name' => 'test'));

$api->updateJob($webdriverSessionID, array('name' => 'mytest', 'success' => true));

$api->getJob($webdriverSessionID);

$api->getJobs(0, 10); // last 10 tests

$api->deleteJob($webdriverSessionID);

$api->stopJob($webdriverSessionID);

$api->getBuilds(0, 10); // last 10 builds

$api->getBuild($buildIdentifier);

$api->deleteBuild($buildIdentifier);

$api->getTunnels();

$api->deleteTunnel($tunnelID);

$api->uploadLocalFileToStorage($pathToLocalFile);

$api->uploadRemoteFileToStorage($urlToRemoteFile);

$api->getStorageFile($appUrl);

$api->getStorageFiles();

$api->deleteStorageFile($appUrl);

$api->getAuthenticationHash($identifier);