Module: Spearly::Auth::User
- Included in:
- Client
- Defined in:
- lib/spearly/auth/user.rb
Instance Method Summary collapse
-
#get_profile ⇒ Object
GET /profile.
-
#get_user(user_id) ⇒ Object
GET /users/:user_id requires SPEARLY_API_ACCESS_TOKEN as token.
Instance Method Details
#get_profile ⇒ Object
GET /profile
18 19 20 21 22 23 24 25 |
# File 'lib/spearly/auth/user.rb', line 18 def get_profile response = run_request( :method => :get, path: '/profile' ) process_response(response) end |
#get_user(user_id) ⇒ Object
GET /users/:user_id requires SPEARLY_API_ACCESS_TOKEN as token
8 9 10 11 12 13 14 15 |
# File 'lib/spearly/auth/user.rb', line 8 def get_user(user_id) response = run_request( :method => :get, path: "/users/#{user_id}" ) process_response(response) end |