Skip to content

Commit

Permalink
Merge pull request #77 from Asana/openapi-sync
Browse files Browse the repository at this point in the history
Generated from OpenAPI
  • Loading branch information
rossgrambo-zz authored Apr 14, 2021
2 parents 308bae1 + f4b5306 commit d5c466c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.2
0.10.3
10 changes: 10 additions & 0 deletions samples/TeamsSample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ teams:
$result = $client->teams->addUserForTeam($team_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true'))
createTeam: >-
<?php
require 'php-asana/vendor/autoload.php';
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN');
$result = $client->teams->createTeam(array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true'))
getTeam: >-
<?php
Expand Down
11 changes: 11 additions & 0 deletions src/Asana/Resources/Gen/TeamsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ public function addUserForTeam($team_gid, $params = array(), $options = array())
return $this->client->post($path, $params, $options);
}

/** Create a team
*
* @param array $params
* @param array $options
* @return response
*/
public function createTeam($params = array(), $options = array()) {
$path = "/teams";
return $this->client->post($path, $params, $options);
}

/** Get a team
*
* @param string $team_gid (required) Globally unique identifier for the team.
Expand Down

0 comments on commit d5c466c

Please sign in to comment.