Class GupshupPartnerApiClient
Business Profile
getBusinessProfileAbout
getBusinessProfileAbout(): Promise<any>
getBusinessProfileDetails
getBusinessProfileDetails(): Promise<any>
getBusinessProfilePhoto
getBusinessProfilePhoto(): Promise<any>
Constructors
Media
downloadMedia
downloadMedia(mediaId: string): Promise<any>
generateMediaIdUsingUpload
generateMediaIdUsingUpload(file: any, file_type: string): Promise<any> Parameters
- file: any
- file_type: string
Returns Promise<any>
Methods
addOptIn
addOptIn(phone: string): Promise<any>
getDiscount
getDiscount(year: string, month: string): Promise<any> Parameters
- year: string
- month: string
Returns Promise<any>
getUsage
getUsage(from: string, to: string): Promise<any>
getUserStatus
getUserStatus(phone: string): Promise<any>
isPhoneOpted
isPhoneOpted(phone: string): Promise<boolean>
putCallBackUrl
putCallBackUrl(callbackUrl: string): Promise<any>
updateEvents
updateEvents(events: string[]): Promise<boolean>
Properties
axios
axios: AxiosInstance
portalUrl
portalUrl: string
Subscription
addSubscription
Returns Promise<AxiosResponse<any, any>>
deleteAllSubscriptions
deleteAllSubscriptions(): Promise<AxiosResponse<any, any>> Returns Promise<AxiosResponse<any, any>>
deleteSubscription
deleteSubscription(subscriptionId: string): Promise<AxiosResponse<any, any>> Returns Promise<AxiosResponse<any, any>>
getAllSubscriptions
getAllSubscriptions(): Promise<AxiosResponse<any, any>> Returns Promise<AxiosResponse<any, any>>
getSubscription
getSubscription(subscriptionId: string): Promise<AxiosResponse<any, any>> Returns Promise<AxiosResponse<any, any>>
updateSubscription
Returns Promise<AxiosResponse<any, any>>
Template
delTemplate
delTemplate(elementName: string): Promise<any>
Template Analytics
disableButtonClickAnalytics
disableButtonClickAnalytics(templateId: string): Promise<any>
WABA Management
checkHealth
checkHealth(): Promise<any>
getMessageLimit
getMessageLimit(): Promise<any>
getQualityRating
getQualityRating(): Promise<any>
getWABAInfo
getWABAInfo(): Promise<any>
getWalletBalance
getWalletBalance(): Promise<any>
Deprecated