Module: Spearly::Auth::TeamMember

Included in:
Client
Defined in:
lib/spearly/auth/team_member.rb

Instance Method Summary collapse

Instance Method Details

#get_team_members(team_id) ⇒ Object

GET /teams/:team_id/members



18
19
20
21
22
23
24
25
# File 'lib/spearly/auth/team_member.rb', line 18

def get_team_members(team_id)
  response = run_request(
    :method => :get,
    path: "/teams/#{team_id}/members"
  )

  process_response(response)
end

#invite_user_to_team(team_id, params) ⇒ Object

POST /teams/:team_id/invite



7
8
9
10
11
12
13
14
15
# File 'lib/spearly/auth/team_member.rb', line 7

def invite_user_to_team(team_id, params)
  response = run_request(
    :method => :post,
    path: "/teams/#{team_id}/invite",
    params: params
  )

  process_response(response)
end