-
Notifications
You must be signed in to change notification settings - Fork 59
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 #83 from Asana/openapi-sync
Generated from OpenAPI
- Loading branch information
Showing
3 changed files
with
39 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.5 | ||
0.10.6 |
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,11 @@ | ||
auditlogapi: | ||
getAuditLogEvents: >- | ||
<?php | ||
require 'php-asana/vendor/autoload.php'; | ||
$client = Asana\Client::accessToken('PERSONAL_ACCESS_TOKEN'); | ||
$result = $client->auditlogapi->getAuditLogEvents($workspace_gid, array('param' => 'value', 'param' => '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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Asana\Resources\Gen; | ||
|
||
class AuditLogAPIBase { | ||
|
||
/** | ||
* @param Asana/Client client The client instance | ||
*/ | ||
public function __construct($client) | ||
{ | ||
$this->client = $client; | ||
} | ||
|
||
/** Get audit log events | ||
* | ||
* @param string $workspace_gid (required) Globally unique identifier for the workspace or organization. | ||
* @param array $params | ||
* @param array $options | ||
* @return response | ||
*/ | ||
public function getAuditLogEvents($workspace_gid, $params = array(), $options = array()) { | ||
$path = "/workspaces/{workspace_gid}/audit_log_events"; | ||
$path = str_replace("{workspace_gid}", $workspace_gid, $path); | ||
return $this->client->getCollection($path, $params, $options); | ||
} | ||
} |