-
Notifications
You must be signed in to change notification settings - Fork 32
Emoticons
Charlton edited this page Jan 22, 2014
·
1 revision
Returns up to 100 emoticons.
Parameters:
-
param
(object) - Optional. query string parameters (optional)-
'start-index': <int>
- Optional. The start index for the result set. Defaults to0
. -
'max-results': <int>
- Optional. The maximum number of results. Defaults to100
. -
'type': <string>
- Optional. The type of emoticons to get. Defaults to'all'
.
-
-
param
(int) - Optional. id for single emoticon. -
param
(string) - Optional. shortcut for single emoticon.
Results: err
, response (array: list of emoticons) (object: single emoticon)
// default: returns array of all emoticons
hipchatter.emoticons(function(err, emoticons){
console.log(emoticons);
});
hipchatter.emoticons({'start-index': 20, 'max-results': 40, 'type': 'group'}, function(err, emoticons){
console.log(emoticons);
});
hipchatter.emoticons(34, function(err, emoticon){
console.log(emoticon);
});
hipchatter.emoticons('fonzie', function(err, emoticon){
console.log(emoticon);
});
Get an emoticon by id or shortcut.
Parameters:
-
param
(int) - Required. id for single emoticon. or -
param
(string) - Required. shortcut for single emoticon.
Results: err
, response (object) - single emoticon details
hipchatter.get_emoticon(34, function(err, emoticon){
console.log(emoticon);
});
hipchatter.get_emoticon('fonzie', function(err, emoticon){
console.log(emoticon);
});
}