Don't waste your time connecting to Ankama APIs...
This small project is made to avoid to write time-consuming code about a non-consistent API.
Works on Window, Unix, OSX.
None.
You just have to have curl
installed on your system.
Using npm:
npm i --save ankonnect
Using yarn:
yarn add ankonnect
You have to construct the Ankonnect and use the SDK.
import Ankonnect from "ankonnect";
const ankonnect = new Ankonnect();
const response = await ankonnect.Api.createApiKey({
login: "myLogin",
password: "*******",
long_life_token: true
});
console.log(response.key);
To find all the APIs, check the Docs