@zohocrm/nodejs-sdk-2.0
Version:
Node JS SDK for Zoho CRM
59 lines (51 loc) • 1.71 kB
JavaScript
const UserSignature = require('../../../routes/user_signature').UserSignature;
const Token = require("../token").Token;
/**
* This class stores the user token details.
*/
class TokenStore {
/**
This method is used to get user token details.
* @param {UserSignature} user - A UserSignature class instance.
* @param {Token} token - A Token class instance.
* @returns {Token} A Token class instance representing the user token details.
* @throws {SDKException}
*/
getToken(user, token) { }
/**
* This method is used to retrieve the user token details based on unique ID
* @param {String} id - A String representing the unique ID
* @param {Token} token - A Token class instance.
* @return {Token} A Token class instance representing the user token details.
* @throws SDKException
*/
getTokenById(id, token) { }
/**
* This method is used to store user token details.
* @param {UserSignature} user - A UserSignature class instance.
* @param {Token} token - A Token class instance.
* @throws {SDKException}
*/
saveToken(user, token) { }
/**
This method is used to delete user token details.
* @param {Token} token - A Token class instance.
* @throws {SDKException}
*/
deleteToken(token) { }
/**
* The method to retrieve all the stored tokens.
* @returns {Array} - An array of Token class instances
* @throws {SDKException}
*/
getTokens() { }
/**
* The method to delete all the stored tokens.
* @throws {SDKException}
*/
deleteTokens() { }
}
module.exports = {
MasterModel: TokenStore,
TokenStore: TokenStore
}