Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtasty-innovation/abtasty-api

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty-innovation/abtasty-api

Package who call AB Tasty API

  • 1.8.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-28.12%
Maintainers
1
Weekly downloads
 
Created
Source

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 user
  • abtasty.account.get.one(account_id) => Get one account
  • abtasty.account.rights.all(account_id) => Get rights for an account
  • abtasty.account.current() => Get current account
  • abtasty.account.additional_information.get.all(account_id) => Get all additional information
  • abtasty.account.additional_information.get.one(account_id, key) => Get one additional information per key
  • abtasty.account.additional_information.create.post(account_id, body) => Create an additional information
  • abtasty.account.additional_information.create.patch(account_id, infoId, body) => Patch a given additional information
  • abtasty.account.test.get.all(account_id) => Get all test for an account id
  • abtasty.account.test.get.one(account_id, test_id) => Get one test
  • abtasty.account.test.variation.get.all(account_id, test_id) => Get all variations for a test
  • abtasty.account.test.variation.get.one(account_id, test_id, variation_id) => Get one variation
  • abtasty.profile.get() => Get logged user profile
Author : Elias Cédric Laouiti @eliaslaouiti elias@abtasty.com

FAQs

Package last updated on 05 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc