vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/lib/freelancer/api/employer.rb
# Invite one or more users to bid on a project
#
# Valid parameters are:
#   - project_id: the id of the project to invite users to
#   - user_id: a single user id, or an array of user ids, to invite to the project
#   - username: a single username, or an array of usernames, to invite to the project
Invite one or more users to bid on a project
Valid parameters are:
project_id: the id of the project to invite users to
user_id: a single user id, or an array of user ids, to invite to the project
username: a single username, or an array of usernames, to invite to the project
Invite one or more users to bid on a project Valid parameters are : project_id : the id of the project to invite users to user_id : a single user id or an array of user ids to invite to the project username : a single username or an array of usernames to invite to the project
def invite_user_to_project(*args)
          params = extract_params(args)
          params[:user_id] ||= []
          params[:user_id] = [ params[:user_id] ] unless params[:user_id].is_a?(Array)
          params[:username] ||= []
          params[:username] = [ params[:username] ] unless params[:username].is_a?(Array)
          result = api_get("/Employer/inviteUserForProject.json", build_api_params({
            :projectid => params[:project_id],
            :useridcsv => params[:user_id].join(","),
            :usernamecsv => params[:username].join(",")
          }))
          ::Freelancer::Models::StatusConfirmation.parse(result, :shift => :"json-result")
        end
def invite_user_to_project ( * args ) params = extract_params ( args ) params [ :user_id ] ||= [ ] params [ :user_id ] = [ params [ :user_id ] ] unless params [ :user_id ] . is_a? ( Array ) params [ :username ] ||= [ ] params [ :username ] = [ params [ :username ] ] unless params [ :username ] . is_a? ( Array ) result = api_get ( "/Employer/inviteUserForProject.json" , build_api_params ( { :projectid => params [ :project_id ] , :useridcsv => params [ :user_id ] . join ( "," ) , :usernamecsv => params [ :username ] . join ( "," ) } ) ) :: Freelancer :: Models :: StatusConfirmation . parse ( result , :shift => :" json-result " ) end
Invite one or more users to bid on a project
Valid parameters are:
 project_id: the id of the project to invite users to
 user_id: a single user id, or an array of user ids, to invite to the project
 username: a single username, or an array of usernames, to invite to the project
Invite one or more users to bid on a project Valid parameters are : project_id : the id of the project to invite users to user_id : a single user id or an array of user ids to invite to the project username : a single username or an array of usernames to invite to the project
# Handle the username and user id attributes, make sure they're an array and not # set to nil to simplify the handling below. # Execute the service call # Parse and return the response
args
<not_specific>