Retrieves the current pricing information for all available services.
https://help.tago.io/portal/en/kb/articles/114-account-plans Account Plans
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const prices = await resources.plan.getCurrentPrices();
console.log(prices); // { analysis: [ { price: 0, amount: 3000 } ], data_records: [...], ... }
Sets the active plan and configures service limits for the account, including SMS, email, data records, device requests and analysis quotas.
https://help.tago.io/portal/en/kb/articles/207-upgrading-plans-services Upgrading Plans & Services
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const result = await resources.plan.setPlanParameters({
plan: "plan_id",
sms: 100,
email: 1000,
data_records: 200000,
device_request: 250,
analysis: 1000
});
console.log(result);
Description
Retrieves information about the currently active plan and its associated services.
See
https://help.tago.io/portal/en/kb/articles/114-account-plans Account Plans
Example