ChatadelicApi v2
Kind: global class
new ChatadelicApi(conf)
Param | Type |
---|
conf | |
conf.username | String |
conf.password | String |
conf.chat | Number |
[conf.interval] | Number |
chatadelicApi.login(callback) ⇒ ChatadelicApi
Kind: instance method of ChatadelicApi
Param | Type |
---|
callback | ChatadelicApiCallback |
chatadelicApi.logout(callback) ⇒ ChatadelicApi
Kind: instance method of ChatadelicApi
Param | Type |
---|
callback | ChatadelicApiCallback |
chatadelicApi.message(obj, callback) ⇒ ChatadelicApi
Kind: instance method of ChatadelicApi
Param | Type | Description |
---|
obj | String | Object | Message text or object |
obj.text | String | Message text |
[obj.target] | String | Target of message (use this to send private messages) |
callback | ChatadelicApiCallback | |
chatadelicApi.getOnline(callback) ⇒ Array.<String>
Get online list
Kind: instance method of ChatadelicApi
Param | Type |
---|
callback | ChatadelicApiCallback |