Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Asana/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function __construct($dispatcher, $options = array())
$this->teammemberships = new Resources\TeamMemberships($this);
$this->teams = new Resources\Teams($this);
$this->timeperiods = new Resources\TimePeriods($this);
$this->timetrackingentries = new Resources\TimeTrackingEntries($this);
$this->typeahead = new Resources\Typeahead($this);
$this->users = new Resources\Users($this);
$this->usertasklists = new Resources\UserTaskLists($this);
Expand Down
17 changes: 16 additions & 1 deletion src/Asana/Resources/Gen/TasksBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,22 @@ public function getTasksForUserTaskList($user_task_list_gid, $params = array(),
$path = str_replace("{user_task_list_gid}", $user_task_list_gid, $path);
return $this->client->getCollection($path, $params, $options);
}



/** Get time tracking entries for a task
*
* @param string $task_gid (required) Globally unique identifier for the task.
* @param array $params
* @param array $options
* @return response
*/
public function getTimeTrackingEntriesForTask($task_gid, $params = array(), $options = array())
{
$path = "/tasks/{task_gid}/time_tracking_entries";
$path = str_replace("{task_gid}", $task_gid, $path);
return $this->client->getCollection($path, $params, $options);
}

/** Unlink dependencies from a task
*
* @param string $task_gid (required) The task to operate on.
Expand Down
28 changes: 28 additions & 0 deletions src/Asana/Resources/Gen/TimeTrackingEntriesBase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Asana\Resources\Gen;

class TimeTrackingEntriesBase {

/**
* @param Asana/Client client The client instance
*/
public function __construct($client)
{
$this->client = $client;
}

/** Returns the full record for a single time-tracking entry.
*
* @param string $time_tracking_entry_gid (required) Globally unique identifier for the time-tracking entry.
* @param array $params
* @param array $options
* @return response
*/
public function getTimeTrackingEntry($time_tracking_entry_gid, $params = array(), $options = array())
{
$path = "/time_tracking_entries/{time_tracking_entry_gid}";
$path = str_replace("{time_tracking_entry_gid}", $time_tracking_entry_gid, $path);
return $this->client->get($path, $params, $options);
}
}
9 changes: 9 additions & 0 deletions src/Asana/Resources/TimeTrackingEntries.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Asana\Resources;

use Asana\Resources\Gen\TimeTrackingEntriesBase;

class TimeTrackingEntries extends TimeTrackingEntriesBase
{
}