vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/lib/freelancer/api/employer.rb
# Retrieve a list of projects posted by a user. By default, this
# retrieves the projects posted by the currently authenticated user.
#
# Valid parameters are:
#   - status: the status value to filter projects by (defaults to 2 (open and frozen))
#   - user_id: the id of the user to list projects for (defaults to current user)
#   - project_id: the project id to filter projects by
#   - type: the project type to use ('active', 'trial' and 'draft' - defaults to 'active')
#   - count: the number of results to return (defaults to 50)
#   - page: the page to retrieve (defaults to 0)
Retrieve a list of projects posted by a user. By default, this
retrieves the projects posted by the currently authenticated user.


Retrieve a list of projects posted by a user . By default this retrieves the projects posted by the currently authenticated user .
def posted_projects(*args)
          params = extract_params(args)
          params[:type] = nil if params[:type] == "active"
          result = api_get("/Employer/getPostedProjectList.json", build_api_params({
            :status => params[:status],
            :userid => params[:user_id],
            :projectid => params[:project_id],
            :projectoption => params[:type],
            :count => params[:count],
            :page => params[:page]
          }))
          ::Freelancer::Models::Project.parse_collection(result, :shift => [ :"json-result", :items ])
        end
def posted_projects ( * args ) params = extract_params ( args ) params [ :type ] = nil if params [ :type ] == "active" result = api_get ( "/Employer/getPostedProjectList.json" , build_api_params ( { :status => params [ :status ] , :userid => params [ :user_id ] , :projectid => params [ :project_id ] , :projectoption => params [ :type ] , :count => params [ :count ] , :page => params [ :page ] } ) ) :: Freelancer :: Models :: Project . parse_collection ( result , :shift => [ :" json-result " , :items ] ) end
Retrieve a list of projects posted by a user.
Retrieve a list of projects posted by a user .
# Use a blank type value if type is set to 'active' # Execute the service call # Parse and return the response
args
<not_specific>