api
Global Property
Type
Export of the SUDS and CCS APIs.
Links
cache
Global Property
Type
Allows access to the cached values.
Links
livefyre
Global Property
Type
Livefyre related SUDS endpoints.
Links
user
Global Property
Type
User related SUDS endpoints.
Links
enableLogging
Global Function
Enables logging.
Returns
Links
disableLogging
Global Function
Disables logging.
Returns
Links
setLoggingLevel
Global Function
Sets logging level.
Returns
Links
setConfig(keyOrObject, value)
Global Function
This method sets additional or overrides current configuration options.
Returns
Links
getAuth
Global Function
Verifies if there's a valid auth token (not expired) attached to the session ID provided.
Returns
Links
removeAuth
Global Function
Removes the auth token from the local cache.
Returns
Links
cacheAuth(authObject)
Global Function
Saves the auth token into the local cache.
Returns
-
boolean
- True if successfully saved or false if not.
Links
getInit(articleId)
Global Function
Returns the SUDS init object saved into the local cache.
Returns
-
object
- Livefyre init object
Links
cacheInit(articleId, initObj)
Global Function
Saves the SUDS init object into the local cache.
Returns
Links
removeInit(articleId)
Global Function
Removes the SUDS init object from the local cache.
Returns
Links
clear
Global Function
Clears all entries created by the cache.
Returns
Links
getXhrForUrl
Global Function
Determine XHR.
Links
trim(string)
Global Function
Wrapper and polyfill for String.prototype.trim
Returns
-
string
- The trimmed string.
Links
module.exports
Static Property
Type
Export all endpoints.
Links
module.exports
Static Property
Type
Isolated copy of the configuration.
Links
livefyre.getInitConfig(conf, callback)
Static Method
Uses SUDS.livefyre.init endpoint, but it also embeds an optional caching layer.
Returns
Links
user.getAuth(confOrCallback, callback)
Static Method
Uses SUDS.user.getauth endpoint, but it also embeds an optional caching layer.
Configuration
Optional fields:
- force: has effect in combination with cache enabled. If force set to true, the data won't be readed from the cache even if a valid entry exists, but it will force the call to the webservice to happen.
Returns
Links
user.updateUser(userSettings, callback)
Static Method
Saves the user's settings by making a call to SUDS.user.updateuser endpoint.
Returns
Links
module.exports
Static Property
Type
Export all endpoints.
Links