1.8.2 • Published 7 years ago
@abtasty-innovation/abtasty-api v1.8.2
AB Tasty Innovation
AB Tasty API package
Authentication :
If you already have an access token
const abtasty = require("abtasty-api")();
await abtasty.setToken('USER TOKEN');If want to log in with user credentials
const abtasty = require("abtasty-api")();
await abtasty.logAsUser(client_id, client_secret, grant_type, username, password);If want to log in with service account
const abtasty = require("abtasty-api")();
await abtasty.logAsService(client_id, client_secret, grant_type);Usage:
// See Authentication section before.
abtasty.account.get.all()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});Available methods:
abtasty.account.get.all()=> Get all accounts linked to this userabtasty.account.get.one(account_id)=> Get one accountabtasty.account.rights.all(account_id)=> Get rights for an accountabtasty.account.current()=> Get current accountabtasty.account.additional_information.get.all(account_id)=> Get all additional informationabtasty.account.additional_information.get.one(account_id, key)=> Get one additional information per keyabtasty.account.additional_information.create.post(account_id, body)=> Create an additional informationabtasty.account.additional_information.create.patch(account_id, infoId, body)=> Patch a given additional informationabtasty.account.test.get.all(account_id)=> Get all test for an account idabtasty.account.test.get.one(account_id, test_id)=> Get one testabtasty.account.test.variation.get.all(account_id, test_id)=> Get all variations for a testabtasty.account.test.variation.get.one(account_id, test_id, variation_id)=> Get one variationabtasty.profile.get()=> Get logged user profile
Author : Elias Cédric Laouiti @eliaslaouiti elias@abtasty.com
1.8.2
7 years ago
1.8.1
7 years ago
1.8.0
7 years ago
1.7.3
7 years ago
1.7.2
7 years ago
1.7.1
7 years ago
1.7.0
7 years ago
1.6.1
7 years ago
1.6.0
7 years ago
1.5.5
7 years ago
1.5.4
7 years ago
1.5.3
7 years ago
1.5.2
7 years ago
1.5.1
7 years ago
1.5.0
7 years ago
1.4.3
7 years ago
1.4.2
8 years ago
1.4.1
8 years ago
1.3.5
8 years ago
1.3.4
8 years ago
1.3.3
8 years ago
1.4.0
8 years ago
1.3.0
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago