UNPKG

gigya-node

Version:
219 lines 9.45 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Socialize = void 0; __exportStar(require("./interfaces/gigya-response"), exports); __exportStar(require("./interfaces/base-params"), exports); __exportStar(require("./interfaces/gender"), exports); __exportStar(require("./interfaces/target-env"), exports); __exportStar(require("./interfaces/session-expiration"), exports); var Socialize = /** @class */ (function () { function Socialize(gigya) { this.gigya = gigya; } /** * This API deletes the specified user's account from Gigya's database. * * @see http://developers.gigya.com/display/GD/socialize.deleteAccount+REST */ Socialize.prototype.deleteAccount = function (params, options) { return this.gigya.request('socialize.deleteAccount', params, options); }; /** * Utility API for deleting user's settings in Gigya's database. * * @see http://developers.gigya.com/display/GD/socialize.delUserSettings+REST */ Socialize.prototype.delUserSettings = function (params, options) { return this.gigya.request('socialize.delUserSettings', params, options); }; /** * This API allows sites integrating 3rd party plugins to validate the UID of a logged-in user. * * @see http://developers.gigya.com/display/GD/socialize.exchangeUIDSignature+REST */ Socialize.prototype.exchangeUIDSignature = function (params, options) { return this.gigya.request('socialize.exchangeUIDSignature', params, options); }; /** * A generic method for making calls to the Facebook Graph API. * * @see http://developers.gigya.com/display/GD/socialize.facebookGraphOperation+REST */ Socialize.prototype.facebookGraphOperation = function (params, options) { return this.gigya.request('socialize.facebookGraphOperation ', params, options); }; /** * Returns the list of email contacts of the current user, from all the providers that support retrieving contacts. * * @see http://developers.gigya.com/display/GD/socialize.getContacts+REST */ Socialize.prototype.getContacts = function (params, options) { return this.gigya.request('socialize.getContacts', params, options); }; /** * Returns information about friends of the current user. * * @see http://developers.gigya.com/display/GD/socialize.getFriendsInfo+REST */ Socialize.prototype.getFriendsInfo = function (params, options) { return this.gigya.request('socialize.getFriendsInfo', params, options); }; /** * Enables retrieving raw data directly from the provider. * * @see http://developers.gigya.com/display/GD/socialize.getRawData+REST */ Socialize.prototype.getRawData = function (params, options) { return this.gigya.request('socialize.getRawData', params, options); }; /** * The method retrieves the number of times certain reaction buttons were clicked. * * @see http://developers.gigya.com/display/GD/socialize.getReactionsCount+REST */ Socialize.prototype.getReactionsCount = function (params, options) { return this.gigya.request('socialize.getReactionsCount', params, options); }; /** * Returns the session information required for making direct API calls to the providers. * * @see http://developers.gigya.com/display/GD/socialize.getSessionInfo+REST */ Socialize.prototype.getSessionInfo = function (params, options) { return this.gigya.request('socialize.getSessionInfo', params, options); }; /** * This method allows you to see the content (URLs) most shared on a site in the recent defined time period (up to 7 days). * * @see http://developers.gigya.com/display/GD/socialize.getTopShares+REST */ Socialize.prototype.getTopShares = function (params, options) { return this.gigya.request('socialize.getTopShares', params, options); }; /** * This method retrieves extended information regarding a user. * * @see http://developers.gigya.com/display/GD/socialize.getUserInfo+REST */ Socialize.prototype.getUserInfo = function (params, options) { return this.gigya.request('socialize.getUserInfo', params, options); }; /** * Utility method for retrieving user's settings from Gigya's database. * * @see http://developers.gigya.com/display/GD/socialize.getUserSettings+REST */ Socialize.prototype.getUserSettings = function (params, options) { return this.gigya.request('socialize.getUserSettings', params, options); }; /** * This method enables you to import a social user into Gigya. * * @see http://developers.gigya.com/display/GD/socialize.importIdentities+REST */ Socialize.prototype.importIdentities = function (params, options) { return this.gigya.request('socialize.importIdentities', params, options); }; /** * This method increments or reduces by one the counter of a given reaction button in a specified reactions bar. * * @see http://developers.gigya.com/display/GD/socialize.incrementReactionsCount+REST */ Socialize.prototype.incrementReactionsCount = function (params, options) { return this.gigya.request('socialize.incrementReactionsCount', params, options); }; /** * This method logs the current user out of Gigya's Platform. * * @see http://developers.gigya.com/display/GD/socialize.logout+REST */ Socialize.prototype.logout = function (params, options) { return this.gigya.request('socialize.logout', params, options); }; /** * The socialize.notifyLogin API method notifies the Gigya service that the user has been logged in by the site. * * @see http://developers.gigya.com/display/GD/socialize.notifyLogin+REST */ Socialize.prototype.notifyLogin = function (params, options) { return this.gigya.request('socialize.notifyLogin', params, options); }; /** * This method notifies the Gigya service that the user has completed the registration process at your site. * * @see http://developers.gigya.com/display/GD/socialize.notifyRegistration+REST */ Socialize.prototype.notifyRegistration = function (params, options) { return this.gigya.request('socialize.notifyRegistration', params, options); }; /** * Publishes a user action to the newsfeed of all the connected providers. * * @see http://developers.gigya.com/display/GD/socialize.publishUserAction+REST */ Socialize.prototype.publishUserAction = function (params, options) { return this.gigya.request('socialize.publishUserAction', params, options); }; /** * Disconnects the current user from one or all of the connected providers. * * @see http://developers.gigya.com/display/GD/socialize.removeConnection+REST */ Socialize.prototype.removeConnection = function (params, options) { return this.gigya.request('socialize.removeConnection', params, options); }; /** * This method sets the user's status in social networks that support this feature. * * @see http://developers.gigya.com/display/GD/socialize.setStatus+REST */ Socialize.prototype.setStatus = function (params, options) { return this.gigya.request('socialize.setStatus', params, options); }; /** * This method replaces the Gigya UID in the user account on Gigya's DB, with a site user ID that you provide. * * @see http://developers.gigya.com/display/GD/socialize.setUID+REST */ Socialize.prototype.setUID = function (params, options) { return this.gigya.request('socialize.setUID', params, options); }; /** * This method updates a user's site information. * * @see http://developers.gigya.com/display/GD/socialize.setUserInfo+REST */ Socialize.prototype.setUserInfo = function (params, options) { return this.gigya.request('socialize.setUserInfo', params, options); }; /** * Utility method for storing the current user's settings in Gigya's database. * * @see http://developers.gigya.com/display/GD/socialize.setUserSettings+REST */ Socialize.prototype.setUserSettings = function (params, options) { return this.gigya.request('socialize.setUserSettings', params, options); }; /** * This utility method provides access to a URL shortening service. * * @see http://developers.gigya.com/display/GD/socialize.shortenURL+REST */ Socialize.prototype.shortenURL = function (params, options) { return this.gigya.request('socialize.shortenURL', params, options); }; return Socialize; }()); exports.Socialize = Socialize; exports.default = Socialize; //# sourceMappingURL=socialize.js.map