Class: Social
Social API is a part of the Dashboard SDK used to access social media related data.
Use global enplug.social
object to access these methods.
#
Methods#
addFacebookPage▸ addFacebookPage(feedId
, pageId
, accessToken
): Promise
<any
>
#
ParametersName | Type |
---|---|
feedId | string |
pageId | string |
accessToken | string |
#
ReturnsPromise
<any
>
#
approveItem▸ approveItem(itemId
, assetId
): Promise
<any
>
#
ParametersName | Type |
---|---|
itemId | string |
assetId | string |
#
ReturnsPromise
<any
>
#
authInstagram▸ authInstagram(accessToken
): Promise
<any
>
#
ParametersName | Type |
---|---|
accessToken | string |
#
ReturnsPromise
<any
>
#
authSlack▸ authSlack(verificationCode
, redirectUrl
): Promise
<any
>
#
ParametersName | Type |
---|---|
verificationCode | string |
redirectUrl | string |
#
ReturnsPromise
<any
>
#
authenticateSlack▸ authenticateSlack(verificationCode
, redirectUrl
): Promise
<any
>
#
ParametersName | Type |
---|---|
verificationCode | string |
redirectUrl | string |
#
ReturnsPromise
<any
>
#
authenticateTeamsAdmin▸ authenticateTeamsAdmin(tenantId
): Promise
<any
>
Saves Teams Admin token to backend.
#
ParametersName | Type | Description |
---|---|---|
tenantId | string | A user id returned from MS Teams after authenticating. |
#
ReturnsPromise
<any
>
#
authenticateTeamsUser▸ authenticateTeamsUser(verificationCode
, redirectUrl
): Promise
<any
>
#
ParametersName | Type |
---|---|
verificationCode | string |
redirectUrl | string |
#
ReturnsPromise
<any
>
#
banItem▸ banItem(itemId
, assetId
): Promise
<any
>
#
ParametersName | Type |
---|---|
itemId | string |
assetId | string |
#
ReturnsPromise
<any
>
#
clearQueryString▸ clearQueryString(): Promise
<any
>
#
ReturnsPromise
<any
>
#
deleteFeed▸ deleteFeed(feedId
): Promise
<any
>
#
ParametersName | Type |
---|---|
feedId | string |
#
ReturnsPromise
<any
>
#
favoriteItem▸ favoriteItem(itemId
, assetId
, network
): Promise
<void
>
#
ParametersName | Type |
---|---|
itemId | string |
assetId | string |
network | string |
#
ReturnsPromise
<void
>
#
getFeeds▸ getFeeds(assetId
): Promise
<any
>
#
ParametersName | Type |
---|---|
assetId | string |
#
ReturnsPromise
<any
>
#
getInstagramAccounts▸ getInstagramAccounts(userId
): Promise
<any
>
#
ParametersName | Type |
---|---|
userId | string |
#
ReturnsPromise
<any
>
#
getSlackChannels▸ getSlackChannels(teamId
): Promise
<any
>
#
ParametersName | Type |
---|---|
teamId | string |
#
ReturnsPromise
<any
>
#
getSlackTeams▸ getSlackTeams(): Promise
<any
>
#
ReturnsPromise
<any
>
#
getTeamsChannels▸ getTeamsChannels(tenantId
): Promise
<any
>
Returns Channels available for a given user ID.
#
ParametersName | Type | Description |
---|---|---|
tenantId | string | An ID returned after authenticating the user with MS Teams. |
#
ReturnsPromise
<any
>
#
loadAllItems▸ loadAllItems(assetId
): Promise
<SocialItemsResponse
>
#
ParametersName | Type |
---|---|
assetId | string |
#
ReturnsPromise
<SocialItemsResponse
>
#
loadBlacklist▸ loadBlacklist(accountId
, socialNetwork
): Promise
<any
>
#
ParametersName | Type |
---|---|
accountId | string |
socialNetwork | string |
#
ReturnsPromise
<any
>
#
lookupTwitterId▸ lookupTwitterId(username
): Promise
<any
>
#
ParametersName | Type |
---|---|
username | string |
#
ReturnsPromise
<any
>
#
openPreapprovalDialog▸ openPreapprovalDialog(feed
, iconUrl
, options?
): Promise
<any
>
#
ParametersName | Type |
---|---|
feed | any |
iconUrl | string |
options? | PreapprovalDialogOptions |
#
ReturnsPromise
<any
>
#
refreshFeed▸ refreshFeed(feedId
): Promise
<any
>
Gets new Facebook posts
#
ParametersName | Type |
---|---|
feedId | string |
#
ReturnsPromise
<any
>
#
removeItem▸ removeItem(itemId
, assetId
): Promise
<any
>
#
ParametersName | Type |
---|---|
itemId | string |
assetId | string |
#
ReturnsPromise
<any
>
#
saveFeed▸ saveFeed(feed
): Promise
<any
>
#
ParametersName | Type |
---|---|
feed | any |
#
ReturnsPromise
<any
>
#
twitterSubscriptionStatus▸ twitterSubscriptionStatus(): Promise
<TwitterSubscriptionStatusResponse
>
#
ReturnsPromise
<TwitterSubscriptionStatusResponse
>
#
unbanUser▸ unbanUser(username
, socialNetwork
, accountId
): Promise
<any
>
#
ParametersName | Type |
---|---|
username | string |
socialNetwork | string |
accountId | string |
#
ReturnsPromise
<any
>
#
unfavoriteItem▸ unfavoriteItem(itemId
, assetId
, network
): Promise
<any
>
#
ParametersName | Type |
---|---|
itemId | string |
assetId | string |
network | string |
#
ReturnsPromise
<any
>