Preparing search index...
The search index is not available
@mobilon-dev/gupshup - v0.2.1
@mobilon-dev/gupshup
GupshupAPIClient
Class GupshupAPIClient
Index
Constructors
constructor
Methods
check
Content
Type
check
Size
get
Read
Status
get
Templates
List
get
Url
Encoded
Data
mark
Read
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
Template
Document
Message
send
Template
Image
Message
send
Template
Location
Message
send
Template
Text
Message
send
Template
Video
Message
send
Text
Message
set
Read
Status
Properties
API_
KEY
APP_
ID
APP_
NAME
SOURCE_
MOBILE_
NUMBER
axios
debug
Constructors
constructor
new
GupshupAPIClient
(
__namedParameters
)
:
GupshupAPIClient
Parameters
__namedParameters
:
GupshupAPIClientConfig
Returns
GupshupAPIClient
Methods
check
Content
Type
check
Content
Type
(
type
,
contentType
)
:
boolean
Parameters
type
:
string
contentType
:
string
Returns
boolean
check
Size
check
Size
(
type
,
size
)
:
boolean
Parameters
type
:
string
size
:
number
Returns
boolean
get
Read
Status
get
Read
Status
(
msgid
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Templates
List
get
Templates
List
(
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Url
Encoded
Data
get
Url
Encoded
Data
(
data
)
:
URLSearchParams
Parameters
data
:
{
[
key
:
string
]
:
any
;
}
[
key
:
string
]:
any
Returns
URLSearchParams
mark
Read
mark
Read
(
msgid
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Contact
Card
send
Contact
Card
(
userMobileNumber
,
contact
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
contact
:
ContactCard
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
List
Message
send
List
Message
(
userMobileNumber
,
message
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
ListMessage
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Location
send
Location
(
userMobileNumber
,
longitude
,
latitude
,
name
,
address
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
longitude
:
string
latitude
:
string
name
:
string
address
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Audio
Message
send
Media
Audio
Message
(
userMobileNumber
,
audioUrl
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
audioUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
File
Message
send
Media
File
Message
(
userMobileNumber
,
fileUrl
,
filename
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
fileUrl
:
string
filename
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Image
Message
send
Media
Image
Message
(
userMobileNumber
,
imageUrl
,
caption
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
imageUrl
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Sticker
Message
send
Media
Sticker
Message
(
userMobileNumber
,
stickerUrl
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
stickerUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Media
Video
Message
send
Media
Video
Message
(
userMobileNumber
,
videoUrl
,
caption
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
videoUrl
:
string
caption
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Quick
Reply
send
Quick
Reply
(
userMobileNumber
,
message
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
QuickReplyMessage
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Document
Message
send
Template
Document
Message
(
userMobileNumber
,
templateId
,
templateParams
,
documentUrl
,
filename
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
documentUrl
:
string
filename
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Image
Message
send
Template
Image
Message
(
userMobileNumber
,
templateId
,
templateParams
,
imageUrl
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
imageUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Location
Message
send
Template
Location
Message
(
userMobileNumber
,
templateId
,
templateParams
,
longitude
,
latitude
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
longitude
:
string
latitude
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Text
Message
send
Template
Text
Message
(
userMobileNumber
,
templateId
,
templateParams
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Template
Video
Message
send
Template
Video
Message
(
userMobileNumber
,
templateId
,
templateParams
,
videoUrl
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
templateId
:
string
templateParams
:
string
[]
videoUrl
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
send
Text
Message
send
Text
Message
(
userMobileNumber
,
message
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
userMobileNumber
:
string
message
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
set
Read
Status
set
Read
Status
(
msgid
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
msgid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
Properties
API_
KEY
API_
KEY
:
string
APP_
ID
APP_
ID
:
string
APP_
NAME
APP_
NAME
:
string
SOURCE_
MOBILE_
NUMBER
SOURCE_
MOBILE_
NUMBER
:
string
axios
axios
:
AxiosInstance
debug
debug
:
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
check
Content
Type
check
Size
get
Read
Status
get
Templates
List
get
Url
Encoded
Data
mark
Read
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
Template
Document
Message
send
Template
Image
Message
send
Template
Location
Message
send
Template
Text
Message
send
Template
Video
Message
send
Text
Message
set
Read
Status
Properties
API_
KEY
APP_
ID
APP_
NAME
SOURCE_
MOBILE_
NUMBER
axios
debug
@mobilon-dev/gupshup - v0.2.1
Loading...