zcrmsdk
Version:
Node JS SDK for Zoho CRM
32 lines (26 loc) • 924 B
JavaScript
const Environment = require("./environment").Environment;
/**
* This class represents the properties of Zoho CRM DataCenter
*/
class DataCenter{
/**
* The method to get the accounts URL.
* @returns A String representing the accounts URL.
*/
getIamUrl(){}
/**
* The method to get the File Upload URL
* @returns A String representing the File Upload URL.
*/
getFileUploadUrl(){}
/**
* This method sets the environment to the calling DataCenter instance
* @param {string} url - A String representing the domain URL
* @param {string} accountsUrl - A String representing the accounts URL to fetch tokens.
* @param {string} fileUploadUrl - A String representing the File Upload URL
*/
static setEnvironment(url, accountsUrl, fileUploadUrl){
return new Environment(url, accountsUrl, fileUploadUrl);
}
}
module.exports = {DataCenter}