Module: HelloSign::Api::Team
- Included in:
- Client
- Defined in:
- lib/hello_sign/api/team.rb
Overview
Contains all the API calls for the Team resource. Take a look at our API Documentation on the Team Resource (app.hellosign.com/api/reference#Team) for more information about this.
Instance Method Summary collapse
- 
  
    
      #add_member_to_team(opts)  ⇒ HelloSign::Resource::Team 
    
    
  
  
  
  
  
  
  
  
  
    Adds or invites a user to the Team. 
- 
  
    
      #create_team(opts)  ⇒ HelloSign::Resource::Team 
    
    
  
  
  
  
  
  
  
  
  
    Creates a new Team and adds you as a member. 
- 
  
    
      #destroy_team  ⇒ HTTP::Status 
    
    
  
  
  
  
  
  
  
  
  
    Deletes your Team. 
- 
  
    
      #get_team  ⇒ HelloSign::Resource::Team 
    
    
  
  
  
  
  
  
  
  
  
    Returns member list and information about your Team. 
- 
  
    
      #remove_member_from_team(opts)  ⇒ HelloSign::Resource::Team 
    
    
  
  
  
  
  
  
  
  
  
    Removes a user from the Team. 
- 
  
    
      #update_team(opts)  ⇒ HelloSign::Resource::Team 
    
    
  
  
  
  
  
  
  
  
  
    Updates the name of your Team. 
Instance Method Details
#add_member_to_team(opts) ⇒ HelloSign::Resource::Team
Adds or invites a user to the Team. If the user does not currently have a HelloSign Account, a new one will be created for them. If the user currently has a paid subscription, they will be emailed an invitation to join the Team. If a user is already a part of a Team, a “team_invite_failed” error will be returned. Note: The account_id prevails if both email_address and acccount_id are provided.
| 88 89 90 | # File 'lib/hello_sign/api/team.rb', line 88 def add_member_to_team(opts) HelloSign::Resource::Team.new post('/team/add_member', body: opts) end | 
#create_team(opts) ⇒ HelloSign::Resource::Team
Creates a new Team and adds you as a member. You must not currently belong to a Team.
| 51 52 53 | # File 'lib/hello_sign/api/team.rb', line 51 def create_team(opts) HelloSign::Resource::Team.new post('/team/create', body: opts) end | 
#destroy_team ⇒ HTTP::Status
Deletes your Team. Can only be invoked with a Team with one member (yourself).
| 72 73 74 | # File 'lib/hello_sign/api/team.rb', line 72 def destroy_team post('/team/destroy') end | 
#get_team ⇒ HelloSign::Resource::Team
Returns member list and information about your Team. If you do not belong to a Team, HelloSign::Error::NotFound will be raised
| 40 41 42 | # File 'lib/hello_sign/api/team.rb', line 40 def get_team HelloSign::Resource::Team.new get('/team') end | 
#remove_member_from_team(opts) ⇒ HelloSign::Resource::Team
Removes a user from the Team. If the user had an outstanding invitation to your Team, the original invitation will expire. Note: The account_id prevails if both email_address and acccount_id are provided.
| 102 103 104 | # File 'lib/hello_sign/api/team.rb', line 102 def remove_member_from_team(opts) HelloSign::Resource::Team.new post('/team/remove_member', body: opts) end | 
#update_team(opts) ⇒ HelloSign::Resource::Team
Updates the name of your Team.
| 62 63 64 | # File 'lib/hello_sign/api/team.rb', line 62 def update_team(opts) HelloSign::Resource::Team.new post('/team', body: opts) end |