diff --git a/VERSION b/VERSION index 6348c0f..a988815 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.10.6 \ No newline at end of file +0.10.7 \ No newline at end of file diff --git a/samples/ProjectBriefsSample.yaml b/samples/ProjectBriefsSample.yaml new file mode 100644 index 0000000..636c34f --- /dev/null +++ b/samples/ProjectBriefsSample.yaml @@ -0,0 +1,41 @@ +projectbriefs: + createProjectBrief: >- + projectbriefs->createProjectBrief($project_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true')) + deleteProjectBrief: >- + projectbriefs->deleteProjectBrief($project_brief_gid, array('opt_pretty' => 'true')) + getProjectBrief: >- + projectbriefs->getProjectBrief($project_brief_gid, array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) + updateProjectBrief: >- + projectbriefs->updateProjectBrief($project_brief_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true')) diff --git a/samples/StatusUpdatesSample.yaml b/samples/StatusUpdatesSample.yaml new file mode 100644 index 0000000..78f5aa3 --- /dev/null +++ b/samples/StatusUpdatesSample.yaml @@ -0,0 +1,41 @@ +statusupdates: + createStatusForObject: >- + statusupdates->createStatusForObject(array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true')) + deleteStatus: >- + statusupdates->deleteStatus($status_gid, array('opt_pretty' => 'true')) + getStatus: >- + statusupdates->getStatus($status_gid, array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) + getStatusesForObject: >- + statusupdates->getStatusesForObject(array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) diff --git a/src/Asana/Resources/Gen/ProjectBriefsBase.php b/src/Asana/Resources/Gen/ProjectBriefsBase.php new file mode 100644 index 0000000..48122d3 --- /dev/null +++ b/src/Asana/Resources/Gen/ProjectBriefsBase.php @@ -0,0 +1,66 @@ +client = $client; + } + + /** Create a project brief + * + * @param string $project_gid (required) Globally unique identifier for the project. + * @param array $params + * @param array $options + * @return response + */ + public function createProjectBrief($project_gid, $params = array(), $options = array()) { + $path = "/projects/{project_gid}/project_briefs"; + $path = str_replace("{project_gid}", $project_gid, $path); + return $this->client->post($path, $params, $options); + } + + /** Delete a project brief + * + * @param string $project_brief_gid (required) Globally unique identifier for the project brief. + * @param array $params + * @param array $options + * @return response + */ + public function deleteProjectBrief($project_brief_gid, $params = array(), $options = array()) { + $path = "/project_briefs/{project_brief_gid}"; + $path = str_replace("{project_brief_gid}", $project_brief_gid, $path); + return $this->client->delete($path, $params, $options); + } + + /** Get a project brief + * + * @param string $project_brief_gid (required) Globally unique identifier for the project brief. + * @param array $params + * @param array $options + * @return response + */ + public function getProjectBrief($project_brief_gid, $params = array(), $options = array()) { + $path = "/project_briefs/{project_brief_gid}"; + $path = str_replace("{project_brief_gid}", $project_brief_gid, $path); + return $this->client->get($path, $params, $options); + } + + /** Update a project brief + * + * @param string $project_brief_gid (required) Globally unique identifier for the project brief. + * @param array $params + * @param array $options + * @return response + */ + public function updateProjectBrief($project_brief_gid, $params = array(), $options = array()) { + $path = "/project_briefs/{project_brief_gid}"; + $path = str_replace("{project_brief_gid}", $project_brief_gid, $path); + return $this->client->put($path, $params, $options); + } +} diff --git a/src/Asana/Resources/Gen/StatusUpdatesBase.php b/src/Asana/Resources/Gen/StatusUpdatesBase.php new file mode 100644 index 0000000..ae017e0 --- /dev/null +++ b/src/Asana/Resources/Gen/StatusUpdatesBase.php @@ -0,0 +1,62 @@ +client = $client; + } + + /** Create a status update + * + * @param array $params + * @param array $options + * @return response + */ + public function createStatusForObject($params = array(), $options = array()) { + $path = "/status_updates"; + return $this->client->post($path, $params, $options); + } + + /** Delete a status update + * + * @param string $status_gid (required) The status update to get. + * @param array $params + * @param array $options + * @return response + */ + public function deleteStatus($status_gid, $params = array(), $options = array()) { + $path = "/status_updates/{status_gid}"; + $path = str_replace("{status_gid}", $status_gid, $path); + return $this->client->delete($path, $params, $options); + } + + /** Get a status update + * + * @param string $status_gid (required) The status update to get. + * @param array $params + * @param array $options + * @return response + */ + public function getStatus($status_gid, $params = array(), $options = array()) { + $path = "/status_updates/{status_gid}"; + $path = str_replace("{status_gid}", $status_gid, $path); + return $this->client->get($path, $params, $options); + } + + /** Get status updates from an object + * + * @param array $params + * @param array $options + * @return response + */ + public function getStatusesForObject($params = array(), $options = array()) { + $path = "/status_updates"; + return $this->client->getCollection($path, $params, $options); + } +}