1.0.26 • Published 2 months ago
@sonoransoftware/sonoran.js v1.0.26
Sonoran.js
Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.
Example Instance Setup
Utilizing both Sonoran CMS & Sonoran CAD
const Sonoran = require('sonoran.js');
const instance = Sonoran.instance({
cadCommunityId: 'mycommunity',
cadApiKey: 'DF58F1E-FD8A-44C5-BA',
cmsCommunityId: 'mycommunity',
cmsApiKey: 'e6ba9d68-ca7a-4e59-a9e2-93e275b4e0bf'
});
Utilizing just Sonoran CMS or Sonoran CAD
const Sonoran = require('sonoran.js');
const instance = Sonoran.instance({
communityId: 'mycommunity',
apiKey: 'e6ba9d68-ca7a-4e59-a9e2-93e275b4e0bf',
product: Sonoran.productEnums.CMS
});
Example Method Usage
const Sonoran = require('sonoran.js');
const instance = Sonoran.instance({
communityId: 'mycommunity',
apiKey: 'e6ba9d68-ca7a-4e59-a9e2-93e275b4e0bf',
product: Sonoran.productEnums.CMS,
serverId: 2 // Optional - The default server id for both CAD & CMS is 1
});
// This will verify the whitelist of the given API ID or account ID for server id 2 as specified above
instance.cms.verifyWhitelist('459798465498798432');
// OR
// This will verify the whitelist of the given API ID for server id 1 since I specified that
instance.cms.verifyWhitelist({
apiId: '459798465498798432',
serverId: 1
});
// OR
// This will verify the whitelist of the given account ID for server id 1 since I specified that
instance.cms.verifyWhitelist({
accId: 'd5663516-ee35-11e9-9714-5600023b2434',
serverId: 1
});
Further Documentation
More documentation for Sonoran CAD specific methods and usage can be found here, Sonoran CMS specific methods and usage can be found here, and usage information for the REST class here.
1.0.26
2 months ago
1.0.24
5 months ago
1.0.22
5 months ago
1.0.23
5 months ago
1.0.20
5 months ago
1.0.19
7 months ago
1.0.18
12 months ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago