url_with_options() public static method

public static url_with_options ( $url, $options )
コード例 #1
0
ファイル: PodioItem.php プロジェクト: apachejack/podio-php
 /**
  * @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();
 }
コード例 #2
0
ファイル: PodioFile.php プロジェクト: apachejack/podio-php
 /**
  * @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);
 }
コード例 #3
0
ファイル: PodioTask.php プロジェクト: buonzz-systems/cmpress
 /**
  * @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));
 }
コード例 #4
0
ファイル: PodioTask.php プロジェクト: apachejack/podio-php
 /**
  * @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;
 }
コード例 #5
0
ファイル: PodioComment.php プロジェクト: apachejack/podio-php
 /**
  * @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'];
 }