Class TwitterAssetsManager
Methods
createCustomProfile
- createCustomProfile(tag: string, name: string, mediaId: string): Promise<string>
Parameters
tag: string
name: string
mediaId: string
Returns Promise<string>
deleteCustomProfile
- deleteCustomProfile(tag: string): Promise<string>
Parameters
Returns Promise<string>
deleteWebhook
- deleteWebhook(tag: string, envName: string): Promise<string>
Parameters
tag: string
envName: string
Returns Promise<string>
deleteWelcomeMessage
- deleteWelcomeMessage(tag: string): Promise<string>
Parameters
Returns Promise<string>
getAllAssets
- getAllAssets(resource: string): Promise<null | Map<string, string>>
Parameters
Returns Promise<null | Map<string, string>>
getAllCustomProfiles
- getAllCustomProfiles(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAllMedia
- getAllMedia(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAllWebhooks
- getAllWebhooks(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAllWelcomeMessages
- getAllWelcomeMessages(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAssetId
- getAssetId(resource: string, tag: string): Promise<undefined | string>
Parameters
resource: string
tag: string
Returns Promise<undefined | string>
getCustomProfile
- getCustomProfile(tag: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
getMedia
- getMedia(tag: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
getWebhook
- getWebhook(tag: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
getWelcomeMessage
- getWelcomeMessage(tag: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
renderWelcomeMessage
- renderWelcomeMessage(tag: string, message: SociablyNode): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
saveAssetId
- saveAssetId(resource: string, tag: string, id: string): Promise<boolean>
Parameters
resource: string
tag: string
id: string
Returns Promise<boolean>
saveCustomProfile
- saveCustomProfile(tag: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
saveMedia
- saveMedia(tag: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
saveWebhook
- saveWebhook(tag: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
saveWelcomeMessage
- saveWelcomeMessage(tag: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
setUpWebhook
- setUpWebhook(tag: string, envName: string, url: string): Promise<string>
Parameters
tag: string
envName: string
url: string
Returns Promise<string>
unsaveAssetId
- unsaveAssetId(resource: string, tag: string): Promise<boolean>
Parameters
resource: string
tag: string
Returns Promise<boolean>
unsaveCustomProfile
- unsaveCustomProfile(tag: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsaveMedia
- unsaveMedia(tag: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsaveWebhook
- unsaveWebhook(tag: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsaveWelcomeMessage
- unsaveWelcomeMessage(tag: string): Promise<boolean>
Parameters
Returns Promise<boolean>
TwitterAssetsManager stores ids of assets created at Twitter platform.