Class: Talknote::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/talknote/client.rb

Instance Method Summary collapse

Instance Method Details

#dmObject



8
9
10
11
# File 'lib/talknote/client.rb', line 8

def dm
  response = conn.get('api/v1/dm')
  JSON.parse(response.body)
end

#dm_list(id) ⇒ Object



13
14
15
16
# File 'lib/talknote/client.rb', line 13

def dm_list(id)
  response = conn.get("api/v1/dm/list/#{id}")
  JSON.parse(response.body)
end

#dm_unread(did) ⇒ Object



18
19
20
21
# File 'lib/talknote/client.rb', line 18

def dm_unread(id)
  response = conn.get("api/v1/dm/unread/#{id}")
  JSON.parse(response.body)
end

#group_list(id) ⇒ Object

def dm_post; end



25
26
27
28
# File 'lib/talknote/client.rb', line 25

def group_list(id)
  response = conn.get("api/v1/group/list/#{id}")
  JSON.parse(response.body)
end