Search
Preparing search index...
The search index is not available
Skype Http
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"src/lib/api"
Api
Class Api
Hierarchy
EventEmitter
Api
Implements
ApiEvents
Index
Constructors
constructor
Properties
context
io
messages
Poller
default
Max
Listeners
Methods
accept
Contact
Request
add
Listener
decline
Contact
Request
emit
event
Names
get
Contact
get
Contacts
get
Conversation
get
Conversations
get
Max
Listeners
get
State
handle
Polling
Event
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
send
Image
send
Message
set
Max
Listeners
set
Status
stop
Listening
listener
Count
Constructors
constructor
new
Api
(
context
:
ApiContext
, io
:
HttpIo
)
:
Api
Parameters
context:
ApiContext
io:
HttpIo
Returns
Api
Properties
context
context
:
ApiContext
io
io
:
HttpIo
messages
Poller
messages
Poller
:
MessagesPoller
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
accept
Contact
Request
accept
Contact
Request
(
contactUsername
:
string
)
:
Promise
<
this
>
Parameters
contactUsername:
string
Returns
Promise
<
this
>
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
decline
Contact
Request
decline
Contact
Request
(
contactUsername
:
string
)
:
Promise
<
this
>
Parameters
contactUsername:
string
Returns
Promise
<
this
>
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Contact
get
Contact
(
contactId
:
string
)
:
Promise
<
Contact
>
Parameters
contactId:
string
Returns
Promise
<
Contact
>
get
Contacts
get
Contacts
(
)
:
Promise
<
Contact
[]
>
Returns
Promise
<
Contact
[]
>
get
Conversation
get
Conversation
(
conversationId
:
string
)
:
Promise
<
Conversation
>
Parameters
conversationId:
string
Returns
Promise
<
Conversation
>
get
Conversations
get
Conversations
(
)
:
Promise
<
Conversation
[]
>
Returns
Promise
<
Conversation
[]
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
get
State
get
State
(
)
:
ApiContext.Json
Returns
ApiContext.Json
Protected
handle
Polling
Event
handle
Polling
Event
(
ev
:
EventMessage
)
:
void
Parameters
ev:
EventMessage
Returns
void
listen
listen
(
)
:
Promise
<
this
>
Start polling and emitting events
Returns
Promise
<
this
>
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
send
Image
send
Image
(
message
:
NewImage
, conversationId
:
string
)
:
Promise
<
SendMessageResult
>
Parameters
message:
NewImage
conversationId:
string
Returns
Promise
<
SendMessageResult
>
send
Message
send
Message
(
message
:
NewMessage
, conversationId
:
string
)
:
Promise
<
SendMessageResult
>
Parameters
message:
NewMessage
conversationId:
string
Returns
Promise
<
SendMessageResult
>
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
set
Status
set
Status
(
status
:
api.Status
)
:
Promise
<
void
>
Parameters
status:
api.Status
Returns
Promise
<
void
>
stop
Listening
stop
Listening
(
)
:
Promise
<
this
>
Stop polling and emitting events
Returns
Promise
<
this
>
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
"src/lib/api"
Api
constructor
context
io
messages
Poller
default
Max
Listeners
accept
Contact
Request
add
Listener
decline
Contact
Request
emit
event
Names
get
Contact
get
Contacts
get
Conversation
get
Conversations
get
Max
Listeners
get
State
handle
Polling
Event
listen
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
send
Image
send
Message
set
Max
Listeners
set
Status
stop
Listening
listener
Count
Api
Events
Generated using
TypeDoc
Start polling and emitting events