API
addPreferenceDomaincallActivitiescallChallengescallChallengesResponsescallCodesResponsescallContentBlockscallContentPagescallContentTokenscallCountriesListcallFlagNewspostcallGallerycallGiftcardBalancecallGiftcardClassescallGiftcardTransactionscallGiftcardsPurchasecallGiftcardsTokencallLeaderboardscallLinkGiftcardcallMemberAttributesMetaDatacallMemberDocumentscallMemberGiftcardscallMemberGroupscallMemberGroupsJoinedcallMemberPreferencescallMemberPreferencesMetaDatacallMemberProfilecallMemberPunchcardcallMemberSummarycallNewsfeedcallOfferscallProfileIdentitiescallRedeemRewardscallReferralCodescallRespondChallengecallRespondCodescallRewardscallRewardsResponsescallSocialConnectcallSubmitReceiptscallTopupGiftcardcallUnlinkGiftcardcallUpdateGiftcardcallUseReferralCodechangePasswordgetNewspostFlagsjoinMemberGrouprespondOfferupdateAvatarupdateMemberPreferencesupdateMemberProfile
Methods
addPreferenceDomain(preference,callback)
Allows the user to add a member-supplied preference. This, of course, will only work if “Users can enter other values” option is enabled in marketing console.
1
Stellar.api.addPreferenceDomain(preference, callback);
|
preference object (required) |
preference object
|
||||
|
callback function (optional) |
callback function that handles the response |
callActivities(callConfig, callback)
List of member activities information
1
Stellar.api.callActivities(callConfig, callback);
|
callConfig object (optional) |
activity object
|
|||||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response | |||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| Value | Description |
|---|---|
| alltime | Activities all time |
| ytd | Year to date |
| prev |
Year to date of previous n years e.g. prev1ytd. If today is 05/05/2017, then it would be 01/01/2016-05/05/2016. Used for period-to-period comparison. |
| mtd | Month to date |
| prev |
Same period as mtd but of previous n months e.g. prev1mtd. If today is 05/05/2017, then it would be 04/01/2017-04/05/2017. Used for period-to-period comparison. |
| wtd | Week to date, starts on a Monday |
| prev |
Same period as wtd but of previous n weeks e.g. prev1wtd. If today is 05/05/2017 (Friday), then it would be 04/24/2017-04/28/2017 (Monday to Friday). Used for period-to-period comparison. |
| qtd | Quarter to date |
| prev |
Same period as qtd but of previous n quarters e.g. prev1qtd. If today is 05/05/2017, then it would be 01/01/2017-02/05/2017 since previous quarter is from January to March. Used for period-to-period comparison. |
| last |
Last n days; e.g. last5d |
| last |
Last n weeks; e.g. last3w |
| last |
Last n months; e.g. last2m |
| prev |
Previous n days; e.g. prev5d. The 5 days before the last 5 days. Used for period-to-period comparison. |
| prev |
Previous n weeks; e.g. prev5w. The 5 weeks before the last 5 weeks. Used for period-to-period comparison. |
| prev |
Previous n months; e.g. prev5m. The 5 months before the last 5 minths. Used for period-to-period comparison. |
callChallenges(callConfig, callback)
Lists all challenges available to the user.
1
Stellar.api.callChallenges(callConfig, callback);
|
callConfig object (optional) |
challenge object
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callChallengesResponses(callConfig, callback)
Fetch Member challenges responses
1
Stellar.api.callChallengesResponses(callConfig, callback);
|
callConfig object |
challenge response object properties
|
||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callCodesResponses(callConfig, callback)
Lists all code responses made by the user
1
Stellar.api.callCodesResponses(callConfig, callback);
|
callConfig object (optional) |
codesResponses object properties
|
|||||||||
|
callback function (optional) |
callback function that handles the response |
callContentBlocks(callConfig, callback)
Lists all content blocks
1
Stellar.api.callContentBlocks(callConfig, callback);
|
callConfig object |
content blocks object properties
|
|||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callContentPages(callConfig, callback)
Lists all content pages
1
Stellar.api.callContentPages(callConfig, callback);
|
callConfig object |
content pages object properties
|
|||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callContentTokens(callback, forceRefresh)
Fetch Content Tokens
1
Stellar.api.callContentTokens(callback, forceRefresh);
|
callback function (optional) |
callback function that handles the response |
|
forceRefresh boolean (optional) |
Default: true, it will always call new content tokens |
callCountriesList(callback)
Fetch Countries with country codes
1
Stellar.api.callCountriesList(callback);
|
callback function (optional) |
callback function that handles the response |
callFlagNewspost(callConfig, callback)
Allows user to flag a post feed
1
Stellar.api.callFlagNewspost(callConfig, callback);
|
callConfig object |
call flag news post object properties
|
||
|
callback function (optional) |
callback function that handles the response |
callGallery(callConfig, callback)
Fetch List of Newsfeed with attachments
1
Stellar.api.callGallery(callConfig, callback);
|
config object |
preference object
|
|||||||||
|
callback function (optional) |
callback function that handles the response |
callGiftcardBalance(callConfig, callback)
Check member’s giftcard balance
1
Stellar.api.callGiftcardBalance(callConfig, callback);
|
callConfig object (required) |
callConfig properties
|
||||
|
callback function (optional) |
callback function that handles the response |
callGiftcardClasses(callback)
Get list of available giftcards classes
1
Stellar.api.callGiftcardClasses(callback);
|
callback function (optional) |
callback function that handles the response |
callGiftcardTransactions(callConfig, callback)
Get a list of giftcard transactions
1
Stellar.api.callGiftcardTransactions(callConfig, callback);
|
callConfig object (required) |
callConfig properties
|
||
|
callback function (optional) |
callback function that handles the response |
callGiftcardsPurchase(callConfig, callback)
Purchase a digital giftcard
1
Stellar.api.callGiftcardsPurchase(callConfig, callback);
|
callConfig object (required) |
callConfig properties
|
||||||
|
callback function (optional) |
callback function that handles the response |
callGiftcardsToken(callback)
Get giftcard client_token
1
Stellar.api.callGiftcardsToken(callback);
|
callback function (optional) |
callback function that handles the response |
callLeaderboards(callConfig, callback)
Fetch Leaderboards
1
Stellar.api.callLeaderboards(callConfig, callback);
|
callConfig object |
callConfig properties
|
||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callLinkGiftcard(callConfig, callback)
Link a member to a gift card
1
Stellar.api.callLinkGiftcard(callConfig, callback);
|
callConfig object (required) |
callConfig properties
|
||||
|
callback function (optional) |
callback function that handles the response |
callMemberAttributesMetaData(callback, cache)
List of member profile metadata information
1
Stellar.api.callMemberAttributesMetaData(callback, cache);
|
callback function (optional) |
callback function that handles the response |
|
cache boolean (optional) |
Default: true, it will always call new content tokens |
callMemberDocuments(callConfig, callback)
Fetch Member Documents
1
Stellar.api.callMemberDocuments(callConfig, callback);
|
config object |
preference object
|
|||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberGiftcards(callConfig, callback)
Get Member giftcards
1
Stellar.api.callMemberGiftcards(callConfig, callback);
|
config object |
preference object
|
||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberGroups(callConfig, callback)
Fetch all Groups that are visible to the member
1
Stellar.api.callMemberGroups(callConfig, callback);
|
callConfig object |
callConfig properties
|
|||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberGroupsJoined(callConfig, callback, cache)
Fetch Groups Member belongs to
1
Stellar.api.callMemberGroupsJoined(callConfig, callback, cache)
|
callConfig object |
callConfig properties
|
|||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberPreferences(callConfig, callback)
Lists all possible preference types that a member could modify to further tweak the kinds of offers or content that can be retrieved.
1
Stellar.api.callMemberPreferences(callConfig, callback);
|
callConfig object |
callConfig properties
|
|||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberPreferencesMetaData(callback)
List of member preferences information metadata
1
Stellar.api.callMemberPreferencesMetaData(callback);
|
callback function (optional) |
callback function that handles the response |
callMemberProfile(callback, forceRefresh)
Fetch Member Profile
1
Stellar.api.callMemberProfile(callback, forceRefresh);
|
callback function (optional) |
callback function that handles the response |
|
cache boolean (optional) |
Default: true, it will always call new content tokens |
callMemberPunchcards(opts, callback)
Get Member Punchcards
1
Stellar.api.callMemberPunchcards(callConfig, callback);
|
opts object (required) |
opts properties
|
||||||||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callMemberSummary(callback, cache)
Fetch Member Summary
1
Stellar.api.callMemberSummary(callback, cache);
|
callback function (optional) |
callback function that handles the response |
|
cache boolean (optional) |
Default: true, it will always call new content tokens |
callNewsfeed(callConfig, callback)
Fetch newsfeeds
1
Stellar.api.callNewsfeed(callConfig, callback);
|
callConfig object |
callConfig properties
|
||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callOffers(callConfig, callback)
Lists all offers available to the user.
1
Stellar.api.callOffers(callConfig, callback);
|
config object |
preference object
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callProfileIdentities(options)
List all member connected identities.
1
Stellar.api.callProfileIdentities(options);
|
options object |
options properties
|
callRedeemRewards(callConfig, callback)
Allows the user to respond to a reward.
1
Stellar.api.callRedeemRewards(callConfig, callback);
|
callConfig object (required) |
callConfig properties
|
||||
|
callback function (optional) |
callback function that handles the response |
callReferralCodes(callback)
Get Member referal codes
1
Stellar.api.callReferralCodes(callback);
|
callback function (optional) |
callback function that handles the response |
callRespondChallenge(callConfig, callback)
Respond to a challenge
1
Stellar.api.callRespondChallenge(callConfig, callback);
|
callConfig object |
callConfig properties
|
|||||||||
|
callback function (optional) |
callback function that handles the response |
callRespondCodes(callConfig, callback)
Respond a code
1
Stellar.api.callRespondCodes(callConfig, callback);
|
callConfig object |
callConfig properties
|
||
|
callback function (optional) |
callback function that handles the response |
callRewards(callConfig, callback)
Lists all rewards available to the user.
1
Stellar.api.callRewards(callConfig, callback);
|
callConfig object |
callConfig properties
|
|||||||||||||||||||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callRewardsResponses(callConfig, callback)
Fetch Reward Responses
1
Stellar.api.callRewardsResponses(callConfig, callback);
|
callConfig object |
callConfig properties
|
|||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callSocialConnect(callConfig, callback)
Connect Facebook/Google identity to Member account
1
Stellar.api.callSocialConnect(callConfig, callback);
|
callConfig object |
callConfig properties
|
||||
|
callback function (optional) |
callback function that handles the response |
callSubmitReceipts(callConfig, callback)
Submit a receipt
1
Stellar.api.callSubmitReceipts(callConfig, callback);
|
config object |
preference object
|
||||
|
callback function (optional) |
callback function that handles the response |
callTopupGiftcard(callConfig, callback)
Reload giftcard
1
Stellar.api.callTopupGiftcard(callConfig, callback);
|
config object |
preference object
|
||||||
|
callback function (optional) |
callback function that handles the response |
callUnlinkGiftcard(callConfig, callback)
Unlink a member to a gift card
1
Stellar.api.callUnlinkGiftcard(callConfig, callback);
|
callConfig object |
callConfig properties
|
||
|
callback function (optional) |
callback function that handles the response |
callUpdateGiftcard(callConfig, callback)
Update Giftcard
1
Stellar.api.callUpdateGiftcard(callConfig, callback);
|
config object |
preference object
|
|||||||||||||||||||||||
|
callback function (optional) |
callback function that handles the response |
callUseReferralCode(callConfig, callback)
Use a referral code
1
Stellar.api.callUseReferralCode(callConfig, callback);
|
callConfig object |
callConfig properties
|
||
|
callback function (optional) |
callback function that handles the response |
changePassword(opts, callback)
Update Member Password
1
Stellar.api.changePassword(opts, callback);
|
config object |
preference object
|
|||||||||
|
callback function (optional) |
callback function that handles the response |
getNewspostFlags(callConfig, callback)
Lists all available flags to be assigned or set later on a news feed post/comment.
1
Stellar.api.getNewspostFlags(callConfig, callback);
|
callConfig object |
callConfig properties
|
||||||
|
callback function (optional) |
callback function that handles the response |
joinMemberGroup(group, callback)
Member to join an existing group
1
Stellar.api.joinMemberGroup(group, callback);
|
group object |
group properties
|
||
|
callback function (optional) |
callback function that handles the response |
respondOffer(callConfig, callback)
Respond to offer
1
Stellar.api.respondOffer(callConfig, callback);
|
callConfig object |
callConfig properties
|
||
|
callback function (optional) |
callback function that handles the response |
updateAvatar(data, callback)
Allows the user to upload an avatar of type image/jpeg or image/png. Uploading a new avatar overwrites the existing one.
1
Stellar.api.updateAvatar(data, callback);
|
data object |
data properties
|
||
|
callback function (optional) |
callback function that handles the response |
updateMemberPreferences(data, callback)
Update Member Preferences
1
Stellar.api.updateMemberPreferences(data, callback);
|
data object |
data properties
|
||||
|
callback function (optional) |
callback function that handles the response |
updateMemberProfile(data, callback)
Update Member Profile
1
Stellar.api.updateMemberProfile(data, callback);
|
data object |
data object
|
||
|
callback function (optional) |
callback function that handles the response |
getLoginStatus
Check user if logged in or not
1
Stellar.getLoginStatus();
login(data, callback)
Login Member
1
Stellar.login(data, callback);
|
config object |
data properties
|
||||
|
callback function (optional) |
callback function that handles the response |
Identifiers
| Name | Description |
|---|---|
| Email attribute | |
| integration_id | Integration ID attribute |
| member_id | Member ID attribute |
| card_id | Card ID attribute |
| username | The username attribute |
| mobile_phone | Mobile Phone attribute if ProgramSetting.login_with_mobile_phone is enabled |
fbLogin(opts, callback)
Signin/Singup via Facebook
1
Stellar.fbLogin
|
opts object |
preference object
|
||
|
callback function (optional) |
callback function that handles the response |
logout(callback)
Logout Member
1
Stellar.logout();
|
callback function (optional) |
callback function that handles the response |
refresh
Refresh ui widgets
1
Stellar.ui.refresh();
refreshSignup
Refresh Signup Form
1
Stellar.ui.refreshSignup();
renderStatic
Refresh static and frame widgets
1
Stellar.ui.renderStatic();
signup(opts, callback)
Signup User
1
Stellar.signup(opts, callback)
|
opts object (required) |
opts properties
|
|||||||||||||||
|
callback function (optional) |
callback function that handles the response |
Previous Cheetah Elements
