post() public static method

public static post ( $url, $attributes = [], $options = [] )
コード例 #1
0
 /**
  * @see https://developers.podio.com/doc/tasks/create-label-151265
  */
 public static function create($attributes = array())
 {
     if (!isset($attributes['color'])) {
         $attributes['color'] = DEFAULT_COLOR;
     }
     $body = Podio::post("/task/label/", $attributes)->json_body();
     $body['label_id'];
 }
コード例 #2
0
ファイル: PodioWidget.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/widgets/create-widget-22491
  */
 public static function create($ref_type, $ref_id, $attributes = array())
 {
     return self::member(Podio::post("/widget/{$ref_type}/{$ref_id}/", $attributes));
 }
コード例 #3
0
ファイル: PodioFile.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/files/copy-file-89977
  */
 public static function copy($file_id)
 {
     return self::member(Podio::post("/file/{$file_id}/copy"));
 }
コード例 #4
0
ファイル: PodioTask.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/tasks/rank-task-81015
  */
 public static function rank($task_id, $attributes = array())
 {
     return Podio::post("/task/{$task_id}/rank", $attributes);
 }
コード例 #5
0
 /**
  * @see https://developers.podio.com/doc/space-members/add-member-to-space-1066259
  */
 public static function add($space_id, $attributes = array())
 {
     return Podio::post("/space/{$space_id}/member/", $attributes);
 }
コード例 #6
0
 /**
  * @see https://developers.podio.com/doc/notifications/star-notification-295910
  */
 public static function star($notification_id)
 {
     return Podio::post("/notification/{$notification_id}/star");
 }
コード例 #7
0
ファイル: PodioSpace.php プロジェクト: buonzz-systems/cmpress
 /**
  * @see https://developers.podio.com/doc/spaces/create-space-22390
  */
 public static function create($attributes = array())
 {
     return Podio::post("/space/", $attributes)->json_body();
 }
コード例 #8
0
ファイル: PodioEmbed.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/embeds/add-an-embed-726483
  */
 public static function create($attributes = array())
 {
     return self::member(Podio::post("/embed/", $attributes));
 }
コード例 #9
0
 /**
  * @see https://developers.podio.com/doc/integrations/refresh-integration-86987
  */
 public static function refresh($app_id)
 {
     return Podio::post("/integration/{$app_id}/refresh");
 }
コード例 #10
0
ファイル: PodioFlow.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/flows/get-possible-attributes-33060379
  */
 public static function get_possible_attributes($ref_type, $ref_id)
 {
     return Podio::post("/flow/{$ref_type}/{$ref_id}/attributes/")->json_body();
 }
コード例 #11
0
 /**
  * @see https://developers.podio.com/doc/questions/answer-question-887232
  */
 public static function answer($question_id, $attributes = array())
 {
     return Podio::post("/question/{$question_id}/", $attributes);
 }
コード例 #12
0
ファイル: PodioContact.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/contacts/create-space-contact-65590
  */
 public static function create($space_id, $attributes = array())
 {
     $body = Podio::post("/contact/space/{$space_id}/", $attributes)->json_body();
     return $body['profile_id'];
 }
コード例 #13
0
ファイル: PodioHook.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/hooks/validate-hook-verification-215241
  */
 public static function validate($hook_id, $attributes = array())
 {
     return Podio::post("/hook/{$hook_id}/verify/validate", $attributes)->json_body();
 }
コード例 #14
0
ファイル: PodioGrant.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/grants/create-grant-16168841
  */
 public static function create($ref_type, $ref_id, $attributes = array())
 {
     return Podio::post("/grant/{$ref_type}/{$ref_id}", $attributes)->json_body();
 }
コード例 #15
0
 /**
  * @see https://developers.podio.com/doc/app-market/install-share-22499
  */
 public static function install($share_id, $attributes = array())
 {
     return Podio::post("/app_store/{$share_id}/install", $attributes)->json_body();
 }
コード例 #16
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'];
 }
コード例 #17
0
ファイル: PodioApp.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/applications/deactivate-app-43821
  */
 public static function deactivate($app_id)
 {
     return Podio::post("/app/{$app_id}/deactivate");
 }
コード例 #18
0
 /**
  * @see https://developers.podio.com/doc/search/search-globally-22488
  */
 public static function search($attributes = array())
 {
     return self::listing(Podio::post("/search/", $attributes));
 }
コード例 #19
0
ファイル: PodioRating.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/ratings/add-rating-22377
  */
 public static function create($ref_type, $ref_id, $rating_type, $attributes = array())
 {
     return Podio::post("/rating/{$ref_type}/{$ref_id}/{$rating_type}", $attributes);
 }
コード例 #20
0
ファイル: PodioForm.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/forms/create-form-53803
  */
 public static function create($app_id, $attributes = array())
 {
     return self::member(Podio::post("/form/app/{$app_id}/", $attributes));
 }
コード例 #21
0
 /**
  * @see https://developers.podio.com/doc/items/export-items-4235696
  */
 public static function export($app_id, $exporter, $attributes = array())
 {
     $body = Podio::post("/item/app/{$app_id}/export/{$exporter}", $attributes ? $attributes : new StdClass())->json_body();
     return $body['batch_id'];
 }
コード例 #22
0
 /**
  * Bootstrap organization. Only applicable on Podio Platform
  */
 public static function bootstrap($attributes = array())
 {
     return Podio::post("/org/bootstrap", $attributes);
 }
コード例 #23
0
 /**
  * @see https://developers.podio.com/doc/comments/add-comment-to-object-22340
  */
 public static function create($ref_type, $ref_id, $attributes = array())
 {
     $body = Podio::post("/comment/{$ref_type}/{$ref_id}", $attributes)->json_body();
     return $body['comment_id'];
 }
コード例 #24
0
 /**
  * Search in app and space. Only applicable to platform
  */
 public static function search_app_and_space($space_id, $app_id, $attributes = array())
 {
     return self::listing(Podio::post("/search/app/{$app_id}/space/{$space_id}", $attributes));
 }
コード例 #25
0
 /**
  * @see https://developers.podio.com/doc/organizations/add-organization-admin-50854
  */
 public static function create_admin($org_id, $attributes = array())
 {
     return Podio::post("/org/{$org_id}/admin/", $attributes);
 }
コード例 #26
0
 /**
  * @see https://developers.podio.com/doc/reminders/snooze-reminder-3321049
  */
 public static function snooze($ref_type, $ref_id)
 {
     return Podio::post("/reminder/{$ref_type}/{$ref_id}/snooze");
 }
コード例 #27
0
 /**
  * @see https://developers.podio.com/doc/conversations/add-participants-384261
  */
 public static function add_participant($conversation_id, $attributes = array())
 {
     return Podio::post("/conversation/{$conversation_id}/participant/", $attributes)->json_body();
 }
コード例 #28
0
 /**
  * @see https://developers.podio.com/doc/applications/add-new-app-field-22354
  */
 public static function create($app_id, $attributes = array())
 {
     $body = Podio::post("/app/{$app_id}/field/", $attributes)->json_body();
     return $body['field_id'];
 }
コード例 #29
0
ファイル: PodioItem.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/items/revert-to-revision-194362682
  */
 public static function revert_to_revision($item_id, $revision, $attributes = array())
 {
     return Podio::post("/item/{$item_id}/revision/{$revision}/revert_to", $attributes);
 }
コード例 #30
0
 /**
  * @see https://developers.podio.com/doc/reference/search-references-13312595
  */
 public static function search($attributes = array())
 {
     return Podio::post("/reference/search", $attributes)->json_body();
 }