Browser and node module for making API requests against webhost-client.
Please note: This module uses Popsicle to make API requests. Promises must be supported or polyfilled on all target environments.
npm install webhost-client --save
bower install webhost-client --save
var WebhostClient = require('webhost-client');
var client = new WebhostClient();
<script src="webhost-client/index.js"></script>
<script>
var client = new WebhostClient();
</script>
You can set options when you initialize a client or at any time with the options
property. You may also override options for a single request by passing an object as the second argument of any request method. For example:
var client = new WebhostClient({ ... });
client.options = { ... };
client.resource('/').get(null, {
baseUri: 'http://example.com',
headers: {
'Content-Type': 'application/json'
}
});
You can override the base URI by setting the baseUri
property, or initializing a client with a base URI. For example:
new WebhostClient({
baseUri: 'https://example.com'
});
If the base URI has parameters inline, you can set them by updating the baseUriParameters
property. For example:
client.options.baseUriParameters.version = 'v3';
All methods return a HTTP request instance of Popsicle, which allows the use of promises (and streaming in node).
var resource = client.resources.users.goals.list;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get users goal choices
resource.get().then(function (res) { ... });
Record users goal choice
resource.post().then(function (res) { ... });
- user_id string
var resource = client.resources.users.user_id(user_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get user information
resource.get().then(function (res) { ... });
Delete user
resource.delete().then(function (res) { ... });
Update user
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"name": {
"type": "string",
"required": true,
"minLength": 2
},
"country": {
"type": "string",
"required": true,
"minLength": 3
}
}
}
var resource = client.resources.users.user_id(user_id).password-reset;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Request a new password reset link
resource.post().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).phone-number;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Update user phone number
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"phone_number": {
"type": "string",
"required": true,
"minLength": 6,
"pattern": "^(\\+?[0-9]*$)$"
}
}
}
var resource = client.resources.users.user_id(user_id).email;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Update user email
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"email": {
"type": "string",
"required": true,
"minLength": 4
}
}
}
var resource = client.resources.users.user_id(user_id).resend-confirmation;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Resend email confirmation
resource.post().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).survey;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Stores survey results.
resource.patch().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).survey-questions;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get users survey questions
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).async.messages;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get user complated async job
resource.get().then(function (res) { ... });
- message_id string
var resource = client.resources.users.user_id(user_id).async.messages.message_id(message_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Set user complated async job as seen
resource.patch().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).zyro-builder;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get user zyro builder usage
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).get-global-notifications;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get user global notifications
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).global-notifications-click;
OAuth2 preflight check
resource.options().then(function (res) { ... });
User clicks on notification
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"notification": {
"type": "integer",
"required": true
}
}
}
var resource = client.resources.users.user_id(user_id).global-notifications-all-read;
OAuth2 preflight check
resource.options().then(function (res) { ... });
User marks notifications as read
resource.patch().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).get-notifications;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get users notifications
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).update-show-notification;
OAuth2 preflight check
resource.options().then(function (res) { ... });
update users notifications show flag
resource.post().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).add-notification;
OAuth2 preflight check
resource.options().then(function (res) { ... });
add new user notification
resource.patch().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).website-pauses;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get all app pauses which belongs to user
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).next-temp-sleep;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the data about next temporary sleeping website
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).phone-verified;
OAuth2 preflight check
resource.options().then(function (res) { ... });
User phone verified notification
resource.get().then(function (res) { ... });
var resource = client.resources.users.user_id(user_id).zyro;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get redirect link for Zyro user transfer
resource.post().then(function (res) { ... });
var resource = client.resources.users.email-verify;
OAuth2 preflight check
resource.options().then(function (res) { ... });
- token string
var resource = client.resources.users.email-verify.token(token);
Verifies user's email with a token
resource.post().then(function (res) { ... });
- provider string
var resource = client.resources.users.social.unlink.provider(provider);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Unlink User from social network
resource.patch().then(function (res) { ... });
var resource = client.resources.users.password-reset;
OAuth2 preflight check
resource.options().then(function (res) { ... });
- token string
var resource = client.resources.users.password-reset.token(token);
Retrieve password reset token details
resource.get().then(function (res) { ... });
Set a new password using password reset token
resource.patch().then(function (res) { ... });
var resource = client.resources.users.social-login.unlink;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Unlink User from social login
resource.get().then(function (res) { ... });
var resource = client.resources.users.onboarding;
Stores onboarding answers
resource.post().then(function (res) { ... });
var resource = client.resources.nps;
Net promotion score track
resource.patch().then(function (res) { ... });
var resource = client.resources.upgrade.hostinger;
Get upgrade to hostinger link
resource.post().then(function (res) { ... });
var resource = client.resources.upgrade.trial;
Get if user is available for free trial
resource.get().then(function (res) { ... });
var resource = client.resources.emailforwards;
Get user information
resource.get().then(function (res) { ... });
Get user information
resource.post().then(function (res) { ... });
- id string
var resource = client.resources.emailforwards.id(id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete user
resource.delete().then(function (res) { ... });
var resource = client.resources.apps;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of apps
resource.get().then(function (res) { ... });
resource.get({ ... });
- status string
Specify application status
Create new app
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"app_name": {
"type": "string",
"required": true
},
"domain": {
"type": "string",
"required": true
},
"type": {
"type": "string",
"required": true
},
"location": {
"type": "string",
"required": true
},
"password": {
"type": "string",
"required": true,
"minLength": 4
}
}
}
- app_id string
var resource = client.resources.apps.app_id(app_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the app with appId
resource.get().then(function (res) { ... });
Delete app
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).reset;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Clean everything client has ever created, basically delete and recreate
resource.post().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).password;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Update application password
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"user_password": {
"type": "string",
"required": true,
"minLength": 6
},
"new_app_password": {
"type": "string",
"required": true,
"minLength": 6
}
}
}
var resource = client.resources.apps.app_id(app_id).type;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change application's type (PHP version)
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"type": {
"type": "string",
"required": true,
"minLength": 5
}
}
}
var resource = client.resources.apps.app_id(app_id).category;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change application's category
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"category": {
"type": "string",
"required": true,
"minLength": 3
}
}
}
var resource = client.resources.apps.app_id(app_id).adult;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change application's adult property
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"adult": {
"type": "boolean",
"required": true
}
}
}
var resource = client.resources.apps.app_id(app_id).displayerrors;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change application's display_errors property
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"adult": {
"type": "boolean",
"required": true
}
}
}
var resource = client.resources.apps.app_id(app_id).sendmail;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Turn on/off sendmail
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"active": {
"type": "boolean",
"required": true
}
}
}
var resource = client.resources.apps.app_id(app_id).changestate;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change state ( global action for all future switches )
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).ftp;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Turn on/off ftp
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"active": {
"type": "boolean",
"required": true
}
}
}
var resource = client.resources.apps.app_id(app_id).repair;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Repair Website
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).restore;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Restore Website
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).mining;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change Mining Status
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).files;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get FTP details for application
resource.get().then(function (res) { ... });
Update FTP password
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"password_old": {
"type": "string",
"required": true,
"minLength": 6
},
"password_new": {
"type": "string",
"required": true,
"minLength": 6
},
"password_new_confirm": {
"type": "string",
"required": true,
"minLength": 6
}
}
}
var resource = client.resources.apps.app_id(app_id).files.permissions;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Fix file permissions
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).settings;
Get Application settings
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).databases;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of databases
resource.get().then(function (res) { ... });
Create new databasis
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"name": {
"type": "string",
"required": true,
"minLength": 2
},
"username": {
"type": "string",
"required": true
},
"password": {
"type": "string",
"required": true
},
"ip": {
"type": "string",
"required": false,
"default" : "127.0.0.1"
},
"permission": {
"type": "string",
"required": false
}
}
}
- database_id string
var resource = client.resources.apps.app_id(app_id).databases.database_id(database_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete databasis
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).databases.database_id(database_id).change-password;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Change database password
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"password_new": {
"type": "string",
"required": true,
"minLength": 6
},
"password_new_confirm": {
"type": "string",
"required": true,
"minLength": 6
}
}
}
var resource = client.resources.apps.app_id(app_id).databases.database_id(database_id).usage;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get database usage over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).databases.database_id(database_id).login;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get database login key
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).cronjobs;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of cronjobs
resource.get().then(function (res) { ... });
Create new cronjob
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"job": {
"type": "string",
"required": true,
"minLength": 1,
"minLength": 4
},
"minute": {
"type": "string",
"required": true,
"minLength": 1,
"minLength": 4
},
"minute": {
"type": "string",
"required": true,
"minLength": 1,
"minLength": 4
},
"hour": {
"type": "string",
"required": true,
"minLength": 1,
"minLength": 2
},
"month": {
"type": "string",
"required": true,
"minLength": 1,
"minLength": 2
},
"weekday": {
"type": "string",
"required": true,
"minLength": 1,
"maxLength": 1
}
}
}
- cron_id string
var resource = client.resources.apps.app_id(app_id).cronjobs.cron_id(cron_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete cronjob
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.all;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.bandwidth;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.response-codes;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.response-time;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.disk-quota;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.top-statistics;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get Disk Space Quota , Inode Usage Quota, Request per Minute statistics
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.more-statistics;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get Bandwidth, Response codes , Request time, Sent emails statistics
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.sendmail;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get sendmail daily usage
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).statistics.monthly-bandwidth;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get bandwidth usage for application over time
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).backend;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get current backend info application
resource.get().then(function (res) { ... });
Change backend type for application
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).redirects;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of redirects
resource.get().then(function (res) { ... });
Create new redirect
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"from": {
"type": "string",
"required": true,
"minLength": 1,
"maxLength": 150
},
"to": {
"type": "string",
"required": true,
"minLength": 1,
"maxLength": 150
},
"type": {
"type": "integer",
"required": false,
"default": 301
}
}
}
- redirect_id string
var resource = client.resources.apps.app_id(app_id).redirects.redirect_id(redirect_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete redirect
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).security.password-protected-directories;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of password-protected-directories
resource.get().then(function (res) { ... });
Create new password-protected-directory
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"directory": {
"type": "string",
"required": false,
"minLength": 1,
"maxLength": 30
},
"username": {
"type": "string",
"required": true,
"minLength": 2,
"maxLength": 30
},
"password": {
"type": "string",
"required": true,
"minLength": 1,
"maxLength": 30
}
}
}
- dir_id string
var resource = client.resources.apps.app_id(app_id).security.password-protected-directories.dir_id(dir_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete password-protected-directory
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).security.hotlink-protection;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of hotlink-protection
resource.get().then(function (res) { ... });
Create new hotlink-protection
resource.post().then(function (res) { ... });
resource.post(null, { query: { ... } });
- domain string
Specify domain to protect
- redirect string
Specify hotlink url
- redirect_protocol string
Specify hotlink url
- extensions string
Specify hotlink extensions
- direct_requests boolean
Allow direct requests
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"domain": {
"type": "string",
"required": true
},
"redirect": {
"type": "string",
"required": true
},
"redirect_protocol": {
"type": "string",
"required": false
},
"extensions": {
"type": "string",
"required": true
},
"direct_requests": {
"type": "boolean",
"required": false,
"default": false
}
}
}
- hostlink_id string
var resource = client.resources.apps.app_id(app_id).security.hotlink-protection.hostlink_id(hostlink_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete hotlink-protection
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).security.ip.whitelist;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of whitelist
resource.get().then(function (res) { ... });
Create new whitelist
resource.post().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"ip": {
"type": "string",
"required": true
}
}
}
- whitelist_id string
var resource = client.resources.apps.app_id(app_id).security.ip.whitelist.whitelist_id(whitelist_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete whitelist
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).security.ip.blacklist;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get list of blacklist
resource.get().then(function (res) { ... });
Create new blacklist
resource.post().then(function (res) { ... });
resource.post(null, { query: { ... } });
- ip string
Specify IP Address
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"ip": {
"type": "string",
"required": true
}
}
}
- blacklist_id string
var resource = client.resources.apps.app_id(app_id).security.ip.blacklist.blacklist_id(blacklist_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Delete blacklist
resource.delete().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).domain;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get current domain information
resource.get().then(function (res) { ... });
Change application domain property
resource.patch().then(function (res) { ... });
application/json
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": true,
"properties": {
"type": {
"type": { "enum": [ "default","subdomain","domain" ] },
"required": true
},
"domain": {
"type": "string",
"required": true
}
}
}
var resource = client.resources.apps.app_id(app_id).zyro;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get URL to Zyro application
resource.post().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).logs;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the activity log for the application
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).build_status;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get application's build status
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).install;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Install specified software to user's application
resource.post().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).filemanager.wasaccessed;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Trigger File Manager access Amplitude event
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).software;
Get what software app uses
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).app-pause;
Get app daily sleeping info
resource.get().then(function (res) { ... });
var resource = client.resources.apps.app_id(app_id).update-app-pause;
Update app daily sleeping info
resource.patch().then(function (res) { ... });
var resource = client.resources.apps.check-name;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Validate email
resource.post().then(function (res) { ... });
var resource = client.resources.archived-apps;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of archived applications
resource.get().then(function (res) { ... });
var resource = client.resources.premium-apps;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of premium user aps
resource.get().then(function (res) { ... });
var resource = client.resources.premium-apps.autologin;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get autologin link to premium app by invoice id
resource.post().then(function (res) { ... });
var resource = client.resources.hostinger-pricing;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of hostinger prices and plan info
resource.get().then(function (res) { ... });
var resource = client.resources.hostinger-pricing-all;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of all hostinger prices and plans info
resource.get().then(function (res) { ... });
var resource = client.resources.hostinger-pricing-old-endpoint;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of all hostinger prices and plans info from old endpoint
resource.get().then(function (res) { ... });
var resource = client.resources.hostinger-pricing-hbilling;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of all hostinger prices and plans info from hBilling
resource.get().then(function (res) { ... });
var resource = client.resources.types;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of available application types
resource.get().then(function (res) { ... });
var resource = client.resources.parked-domains;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of parked domains
resource.get().then(function (res) { ... });
Park a new domain
resource.post().then(function (res) { ... });
var resource = client.resources.parked-domains.appName(appName).has-3rd-party;
Get if app uses 3rd party parked domain
resource.get().then(function (res) { ... });
- domain_id string
var resource = client.resources.parked-domains.domain_id(domain_id);
OAuth2 preflight check
resource.options().then(function (res) { ... });
Deletes a parked domain
resource.delete().then(function (res) { ... });
var resource = client.resources.parked-domains.domain_id(domain_id).status;
Get name server status for a parked domain
resource.get().then(function (res) { ... });
var resource = client.resources.parked-domains.domain_id(domain_id).records;
Updates DNS records for a parked domain
resource.patch().then(function (res) { ... });
var resource = client.resources.categories;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get the list of available application categories
resource.get().then(function (res) { ... });
var resource = client.resources.domains.search;
OAuth2 preflight check
resource.options().then(function (res) { ... });
resource.post().then(function (res) { ... });
var resource = client.resources.domains.check;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Check domain availability
resource.post().then(function (res) { ... });
var resource = client.resources.domains.buy;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Create domain purchase invoice
resource.post().then(function (res) { ... });
var resource = client.resources.domains.invoice;
OAuth2 preflight check
resource.options().then(function (res) { ... });
Get invoice autologin URL
resource.post().then(function (res) { ... });
var resource = client.resources.add-translation;
Sends translations to REST
resource.patch().then(function (res) { ... });
var resource = client.resources.store;
Get the list of referral store items
resource.get().then(function (res) { ... });
var resource = client.resources.store.announcements;
Record if the user has seen the store announcement modal
resource.post().then(function (res) { ... });
- user_id string
var resource = client.resources.store.announcements.user_id(user_id);
Get boolean if user has seen store announcement modal
resource.get().then(function (res) { ... });
var resource = client.resources.store.latest-announcement;
Record if the user has seen the latest store item announcement modal
resource.post().then(function (res) { ... });
var resource = client.resources.gamification;
Returns user active gamification tasks
resource.get().then(function (res) { ... });
var resource = client.resources.cart;
Gets Cart url
resource.post().then(function (res) { ... });
You can make requests to a custom path in the API using the #resource(path)
method.
client.resource('/example/path').get();
Apache 2.0