/** * @see https://developers.podio.com/doc/items/update-item-values-22366 */ public static function update_values($item_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/item/{$item_id}/value", $options); return Podio::put($url, $attributes)->json_body(); }
/** * @see https://developers.podio.com/doc/files/attach-file-22518 */ public static function attach($file_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/file/{$file_id}/attach", $options); return Podio::post($url, $attributes); }
/** * @see https://developers.podio.com/doc/tasks/update-task-10583674 */ public static function update($task_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/task/{$task_id}", $options); return self::member(Podio::put($url, $attributes)); }
/** * @see https://developers.podio.com/doc/tasks/update-task-private-22434 */ public function update_private($private_flag, $options = array()) { $url = Podio::url_with_options("/task/{$this->id}/private", $options); return Podio::put($url, array('private' => $private_flag))->body; }
/** * @see https://developers.podio.com/doc/comments/add-comment-to-object-22340 */ public static function create($ref_type, $ref_id, $attributes = array(), $options = array()) { $url = Podio::url_with_options("/comment/{$ref_type}/{$ref_id}", $options); $body = Podio::post($url, $attributes)->json_body(); return $body['comment_id']; }