Method: Freelancer::API::Project::InstanceMethods#post_public_project_message
- Defined in:
- lib/freelancer/api/project.rb
#post_public_project_message(*args) ⇒ Object
Post a public message for a project
Valid parameters are:
- project_id: the id of the project to post the message to
- message: the message to post
134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/freelancer/api/project.rb', line 134 def (*args) params = extract_params(args) # Execute the service call result = api_get("/Project/postPublicMessage.json", build_api_params({ :projectid => params[:project_id], :messagetext => params[:message] })) # Parse and return the response ::Freelancer::Models::StatusConfirmation.parse(result, :shift => :"json-result") end |