mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
427 B
TypeScript
25 lines
427 B
TypeScript
import * as TestingBot from 'testingbot-api';
|
|
|
|
const sessionId = '123';
|
|
|
|
const tb = new TestingBot({
|
|
api_key: 'api-key',
|
|
api_secret: 'api-secret'
|
|
});
|
|
|
|
function noop(error: any, responseBody: any) {
|
|
console.log(error);
|
|
console.log(responseBody);
|
|
}
|
|
|
|
tb.updateUserInfo({
|
|
email: 'new-email'
|
|
}, noop);
|
|
|
|
tb.getBrowsers(noop, 'webdriver');
|
|
|
|
tb.updateTest({
|
|
'test[name]': 'test',
|
|
build: '01'
|
|
}, sessionId);
|