コード例 #1
0
 /**
  * @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_for_post_with_options("/item/{$item_id}/value", $options);
     return Podio::put($url, $attributes)->json_body();
 }
コード例 #2
0
 /**
  * @see https://developers.podio.com/doc/tasks/create-task-with-reference-22420
  */
 public static function create_for($ref_type, $ref_id, $attributes = array(), $options = array())
 {
     $url = Podio::url_for_post_with_options("/task/{$ref_type}/{$ref_id}/", $options);
     return self::member(Podio::post($url, $attributes));
 }
コード例 #3
0
 /**
  * @see https://developers.podio.com/doc/files/attach-file-22518
  */
 public static function attach($file_id, $attributes = array(), $options = array())
 {
     $url = Podio::url_for_post_with_options("/file/{$file_id}/attach", $options);
     return Podio::post($url, $attributes);
 }