Preparing search index...
The search index is not available
@mobilon-dev/gupshup - v0.2.12
@mobilon-dev/gupshup
GupshupAPIClient
Class GupshupAPIClient
Index
Bussiness Profile
get
Business
Details
get
Business
Profile
About
get
Business
Profile
Details
get
Business
Profile
Photo
update
Business
Profile
About
update
Business
Profile
Details
update
Business
Profile
Photo
Constructors
constructor
Message Read Status
get
Read
Status
mark
Read
Message Read Status alias {@link markRead}
set
Read
Status
Methods
check
Content
Type
check
Size
get
Url
Encoded
Data
Opt In
get
Opt
In
Users
List
mark
User
Opt
In
Properties
API_
KEY
APP_
ID
APP_
NAME
axios
debug
SOURCE_
MOBILE_
NUMBER
Session Message
send
Contact
Card
send
List
Message
send
Location
send
Media
Audio
Message
send
Media
File
Message
send
Media
Image
Message
send
Media
Sticker
Message
send
Media
Video
Message
send
Quick
Reply
send
Text
Message
Subscription
add
Subscription
delete
All
Subscriptions
delete
Subscription
get
Subscription
update
Subscription
Template
get
Template
By
Id
get
Templates
List
Template Message
send
Template
Document
Message
send
Template
Image
Message
send
Template
Location
Message
send
Template
Text
Message
send
Template
Video
Message
Bussiness Profile
get
Business
Details
getBusinessDetails
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Business
Profile
About
getBusinessProfileAbout
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Business
Profile
Details
getBusinessProfileDetails
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Business
Profile
Photo
getBusinessProfilePhoto
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
update
Business
Profile
About
updateBusinessProfileAbout
(
about
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
about
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
update
Business
Profile
Details
updateBusinessProfileDetails
(
data
:
BusinessProfileDetails
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
data
:
BusinessProfileDetails
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
update
Business
Profile
Photo
updateBusinessProfilePhoto
(
file
:
any
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
file
:
any
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Constructors
constructor
new
GupshupAPIClient
(
__namedParameters
:
GupshupAPIClientConfig
,
)
:
GupshupAPIClient
Parameters
__namedParameters
:
GupshupAPIClientConfig
Returns
GupshupAPIClient
Message Read Status
get
Read
Status
getReadStatus
(
msgid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
mark
Read
markRead
(
msgid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Message Read Status alias {@link markRead}
set
Read
Status
setReadStatus
(
msgid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Methods
check
Content
Type
checkContentType
(
type
:
string
,
contentType
:
string
)
:
boolean
Parameters
type
:
string
contentType
:
string
Returns
boolean
check
Size
checkSize
(
type
:
string
,
size
:
number
)
:
boolean
Parameters
type
:
string
size
:
number
Returns
boolean
get
Url
Encoded
Data
getUrlEncodedData
(
data
:
{
[
key
:
string
]:
any
}
)
:
URLSearchParams
Parameters
data
:
{
[
key
:
string
]:
any
}
Returns
URLSearchParams
Opt In
get
Opt
In
Users
List
getOptInUsersList
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Deprecated
mark
User
Opt
In
markUserOptIn
(
userMobileNumber
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Deprecated
Properties
API_
KEY
API_KEY
:
string
APP_
ID
APP_ID
:
string
APP_
NAME
APP_NAME
:
string
axios
axios
:
AxiosInstance
debug
debug
:
boolean
SOURCE_
MOBILE_
NUMBER
SOURCE_MOBILE_NUMBER
:
string
Session Message
send
Contact
Card
sendContactCard
(
userMobileNumber
:
string
,
contact
:
ContactCard
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
contact
:
ContactCard
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
List
Message
sendListMessage
(
userMobileNumber
:
string
,
message
:
ListMessage
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
ListMessage
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Location
sendLocation
(
userMobileNumber
:
string
,
longitude
:
string
,
latitude
:
string
,
name
:
string
,
address
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
longitude
:
string
latitude
:
string
name
:
string
address
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Audio
Message
sendMediaAudioMessage
(
userMobileNumber
:
string
,
audioUrl
:
string
,
caption
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
audioUrl
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
File
Message
sendMediaFileMessage
(
userMobileNumber
:
string
,
fileUrl
:
string
,
filename
:
string
,
caption
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
fileUrl
:
string
filename
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Image
Message
sendMediaImageMessage
(
userMobileNumber
:
string
,
imageUrl
:
string
,
caption
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
imageUrl
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Sticker
Message
sendMediaStickerMessage
(
userMobileNumber
:
string
,
stickerUrl
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
stickerUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Video
Message
sendMediaVideoMessage
(
userMobileNumber
:
string
,
videoUrl
:
string
,
caption
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
videoUrl
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Quick
Reply
sendQuickReply
(
userMobileNumber
:
string
,
message
:
QuickReplyMessage
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
QuickReplyMessage
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Text
Message
sendTextMessage
(
userMobileNumber
:
string
,
message
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Subscription
add
Subscription
addSubscription
(
data
:
SubscriptionDataAdd
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
data
:
SubscriptionDataAdd
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
delete
All
Subscriptions
deleteAllSubscriptions
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
delete
Subscription
deleteSubscription
(
subscriptionId
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
subscriptionId
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Subscription
getSubscription
(
subscriptionId
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
subscriptionId
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
update
Subscription
updateSubscription
(
subscriptionId
:
string
,
data
:
SubscriptionDataUpdate
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
subscriptionId
:
string
data
:
SubscriptionDataUpdate
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Template
get
Template
By
Id
getTemplateById
(
templateId
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
templateId
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Templates
List
getTemplatesList
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Template Message
send
Template
Document
Message
sendTemplateDocumentMessage
(
userMobileNumber
:
string
,
templateId
:
string
,
templateParams
:
string
[]
,
documentUrl
:
string
,
filename
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
documentUrl
:
string
filename
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Image
Message
sendTemplateImageMessage
(
userMobileNumber
:
string
,
templateId
:
string
,
templateParams
:
string
[]
,
imageUrl
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
imageUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Location
Message
sendTemplateLocationMessage
(
userMobileNumber
:
string
,
templateId
:
string
,
templateParams
:
string
[]
,
longitude
:
string
,
latitude
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
longitude
:
string
latitude
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Text
Message
sendTemplateTextMessage
(
userMobileNumber
:
string
,
templateId
:
string
,
templateParams
:
string
[]
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Video
Message
sendTemplateVideoMessage
(
userMobileNumber
:
string
,
templateId
:
string
,
templateParams
:
string
[]
,
videoUrl
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
videoUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Bussiness Profile
get
Business
Details
get
Business
Profile
About
get
Business
Profile
Details
get
Business
Profile
Photo
update
Business
Profile
About
update
Business
Profile
Details
update
Business
Profile
Photo
Constructors
constructor
Message Read Status
get
Read
Status
mark
Read
Message Read Status alias {@link markRead}
set
Read
Status
Methods
check
Content
Type
check
Size
get
Url
Encoded
Data
Opt In
get
Opt
In
Users
List
mark
User
Opt
In
Properties
API_
KEY
APP_
ID
APP_
NAME
axios
debug
SOURCE_
MOBILE_
NUMBER
Session Message
send
Contact
Card
send
List
Message
send
Location
send
Media
Audio
Message
send
Media
File
Message
send
Media
Image
Message
send
Media
Sticker
Message
send
Media
Video
Message
send
Quick
Reply
send
Text
Message
Subscription
add
Subscription
delete
All
Subscriptions
delete
Subscription
get
Subscription
update
Subscription
Template
get
Template
By
Id
get
Templates
List
Template Message
send
Template
Document
Message
send
Template
Image
Message
send
Template
Location
Message
send
Template
Text
Message
send
Template
Video
Message
@mobilon-dev/gupshup - v0.2.12
Loading...
Deprecated