Пример #1
0
 /**
  * Currently the only field that can be modified for a
  * workspace is its name (as Asana API says).
  *
  * This method returns the complete updated workspace record.
  *
  * @param  array $data
  *
  * @return string|null
  */
 public function updateWorkspace($workspaceId = null, $data = ["name" => ""])
 {
     $workspaceId = $workspaceId ?: $this->defaultWorkspaceId;
     return $this->curl->put("workspaces/{$workspaceId}", ['data' => $data]);
 }
Пример #2
0
 /**
  * Currently the only field that can be modified for a workspace is its name (as Asana API says).
  * This method returns the complete updated workspace record.
  *
  * @param  array  $data
  * @return string JSON or null
  */
 public function updateWorkspace($workspaceId = null, $data = array("name" => ""))
 {
     $workspaceId = $workspaceId ?: $this->defaultWorkspaceId;
     return $this->curl->put("workspaces/{$workspaceId}", array('data' => $data));
 }