Module: Typetalk::Api::User

Included in:
Typetalk::Api
Defined in:
lib/typetalk/api/user.rb

Instance Method Summary collapse

Instance Method Details

#get_profile(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/typetalk/api/user.rb', line 6

def get_profile(options={})
  options = {token:nil}.merge(options)

  response = connection.get do |req|
    req.url "#{endpoint}/profile"
    req.params[:access_token] = options[:token] || access_token
  end
  parse_response(response)
end