Method: IdonethisCli::Client::Entry#create

Defined in:
lib/idonethis_cli/client/entry.rb

#create(team_id, body) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/idonethis_cli/client/entry.rb', line 10

def create(team_id, body)
  response = token.post(API_PATH + '/entries', 
                        params: { body: body, team_id: team_id})
  JSON.parse(response.body)
rescue => e
  @error = e.response
  false
end