-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from Asana/openapi-sync
Generated from OpenAPI
- Loading branch information
Showing
5 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.10.7 | ||
0.10.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
projecttemplates: | ||
getProjectTemplate: >- | ||
<?php | ||
require 'php-asana/vendor/autoload.php'; | ||
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN'); | ||
$result = $client->projecttemplates->getProjectTemplate($project_template_gid, array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) | ||
getProjectTemplates: >- | ||
<?php | ||
require 'php-asana/vendor/autoload.php'; | ||
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN'); | ||
$result = $client->projecttemplates->getProjectTemplates(array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) | ||
getProjectTemplatesForTeam: >- | ||
<?php | ||
require 'php-asana/vendor/autoload.php'; | ||
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN'); | ||
$result = $client->projecttemplates->getProjectTemplatesForTeam($team_gid, array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true')) | ||
instantiateProject: >- | ||
<?php | ||
require 'php-asana/vendor/autoload.php'; | ||
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN'); | ||
$result = $client->projecttemplates->instantiateProject($project_template_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
namespace Asana\Resources\Gen; | ||
|
||
class ProjectTemplatesBase { | ||
|
||
/** | ||
* @param Asana/Client client The client instance | ||
*/ | ||
public function __construct($client) | ||
{ | ||
$this->client = $client; | ||
} | ||
|
||
/** Get a project template | ||
* | ||
* @param string $project_template_gid (required) Globally unique identifier for the project template. | ||
* @param array $params | ||
* @param array $options | ||
* @return response | ||
*/ | ||
public function getProjectTemplate($project_template_gid, $params = array(), $options = array()) { | ||
$path = "/project_templates/{project_template_gid}"; | ||
$path = str_replace("{project_template_gid}", $project_template_gid, $path); | ||
return $this->client->get($path, $params, $options); | ||
} | ||
|
||
/** Get multiple project templates | ||
* | ||
* @param array $params | ||
* @param array $options | ||
* @return response | ||
*/ | ||
public function getProjectTemplates($params = array(), $options = array()) { | ||
$path = "/project_templates"; | ||
return $this->client->getCollection($path, $params, $options); | ||
} | ||
|
||
/** Get a team's project templates | ||
* | ||
* @param string $team_gid (required) Globally unique identifier for the team. | ||
* @param array $params | ||
* @param array $options | ||
* @return response | ||
*/ | ||
public function getProjectTemplatesForTeam($team_gid, $params = array(), $options = array()) { | ||
$path = "/teams/{team_gid}/project_templates"; | ||
$path = str_replace("{team_gid}", $team_gid, $path); | ||
return $this->client->getCollection($path, $params, $options); | ||
} | ||
|
||
/** Instantiate a project from a project template | ||
* | ||
* @param string $project_template_gid (required) Globally unique identifier for the project template. | ||
* @param array $params | ||
* @param array $options | ||
* @return response | ||
*/ | ||
public function instantiateProject($project_template_gid, $params = array(), $options = array()) { | ||
$path = "/project_templates/{project_template_gid}/instantiateProject"; | ||
$path = str_replace("{project_template_gid}", $project_template_gid, $path); | ||
return $this->client->post($path, $params, $options); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters