Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Greetings API
  • Loading branch information
clim-godaddy committed Jun 9, 2016
1 parent 02fd3c0 commit ba0bd14
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
15 changes: 14 additions & 1 deletion lib/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
],
"name": "livechatapi",
"description": "Livechat.com API Wrapper",
"version": "0.4.1",
"version": "0.5.0",
"repository": {
"url": ""
},
Expand Down
5 changes: 5 additions & 0 deletions src/api.coffee
Expand Up @@ -161,6 +161,10 @@ class Goals extends BasicCrud
if callback?
callback response

class Greetings extends BasicCrud
constructor: (@api) ->
super @api, 'greetings'

class Groups extends BasicCrud
constructor: (@api) ->
super @api, 'groups'
Expand Down Expand Up @@ -362,6 +366,7 @@ class LiveChatApi extends Requester
@agents = new Agents(@) # 2
@groups = new Groups(@) # 2
@reports = new Reports(@) # @ 2
@greetings = new Greetings(@) # 2
else if @apiVersion == 1
@operators = new Operators(@) # 1
@offline_messages = new OfflineMessages(@) # 1
Expand Down

0 comments on commit ba0bd14

Please sign in to comment.