Skip to content

Commit

Permalink
Merge pull request #82 from Asana/openapi-sync
Browse files Browse the repository at this point in the history
Generated from OpenAPI
  • Loading branch information
aw-asana authored Sep 28, 2021
2 parents 0580f0a + ecd733c commit ae0d30b
Show file tree
Hide file tree
Showing 3 changed files with 24 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.4
0.10.5
10 changes: 10 additions & 0 deletions samples/WebhooksSample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ webhooks:
$result = $client->webhooks->getWebhooks(array('param' => 'value', 'param' => 'value'), array('opt_pretty' => 'true'))
updateWebhook: >-
<?php
require 'php-asana/vendor/autoload.php';
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN');
$result = $client->webhooks->updateWebhook($webhook_gid, array('field' => 'value', 'field' => 'value'), array('opt_pretty' => 'true'))
13 changes: 13 additions & 0 deletions src/Asana/Resources/Gen/WebhooksBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,17 @@ public function getWebhooks($params = array(), $options = array()) {
$path = "/webhooks";
return $this->client->getCollection($path, $params, $options);
}

/** Update a webhook
*
* @param string $webhook_gid (required) Globally unique identifier for the webhook.
* @param array $params
* @param array $options
* @return response
*/
public function updateWebhook($webhook_gid, $params = array(), $options = array()) {
$path = "/webhooks/{webhook_gid}";
$path = str_replace("{webhook_gid}", $webhook_gid, $path);
return $this->client->put($path, $params, $options);
}
}

0 comments on commit ae0d30b

Please sign in to comment.