get() public static method

public static get ( $url, $attributes = [], $options = [] )
コード例 #1
0
ファイル: PodioGrant.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/grants/get-grants-to-user-on-space-19389786
  */
 public static function get_for_user_on_space($space_id, $user_id)
 {
     return self::listing(Podio::get("/grant/space/{$space_id}/user/{$user_id}/"));
 }
コード例 #2
0
 /**
  * @see https://developers.podio.com/doc/conversations/get-conversations-on-object-22443
  */
 public static function get_for($ref_type, $ref_id, $plugin)
 {
     return self::listing(Podio::get("/batch/{$ref_type}/{$ref_id}/"));
 }
コード例 #3
0
ファイル: PodioFile.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/files/get-files-4497983
  */
 public static function get_all($attributes = array())
 {
     return self::listing(Podio::get("/file/", $attributes));
 }
コード例 #4
0
 /**
  * @see https://developers.podio.com/doc/tasks/get-task-summary-for-reference-1657980
  */
 public static function get_summary_for($ref_type, $ref_id, $attributes = array())
 {
     $result = Podio::get("/task/{$ref_type}/{$ref_id}/summary", $attributes)->json_body();
     $result['overdue']['tasks'] = self::listing($result['overdue']['tasks']);
     $result['today']['tasks'] = self::listing($result['today']['tasks']);
     $result['other']['tasks'] = self::listing($result['other']['tasks']);
     return $result;
 }
コード例 #5
0
 /**
  * @see https://developers.podio.com/doc/recurrence/get-recurrence-3415545
  */
 public static function get_for($ref_type, $ref_id)
 {
     return self::member(Podio::get("/recurrence/{$ref_type}/{$ref_id}"));
 }
コード例 #6
0
 /**
  * @see https://developers.podio.com/doc/notifications/get-inbox-new-count-84610
  */
 public static function get_new_count()
 {
     $body = Podio::get("/notification/inbox/new/count")->json_body();
     return $body['new'];
 }
コード例 #7
0
 /**
  * @see https://developers.podio.com/doc/comments/get-comments-on-object-22371
  */
 public static function get_for($ref_type, $ref_id)
 {
     return self::listing(Podio::get("/comment/{$ref_type}/{$ref_id}/"));
 }
コード例 #8
0
 /**
  * @see https://developers.podio.com/doc/tasks/get-labels-151534
  */
 public static function get_all()
 {
     return self::listing(Podio::get("/task/label"));
 }
コード例 #9
0
ファイル: PodioForm.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/forms/get-forms-53771
  */
 public static function get_for_app($app_id)
 {
     return self::listing(Podio::get("/form/app/{$app_id}/"));
 }
コード例 #10
0
 /**
  * @see https://developers.podio.com/doc/integrations/get-integration-86821
  */
 public static function get($app_id)
 {
     return self::member(Podio::get("/integration/{$app_id}"));
 }
コード例 #11
0
ファイル: PodioUser.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/users/get-profile-field-22380
  */
 public static function get_profile_field($field)
 {
     return Podio::get("/user/profile/{$field}")->json_body();
 }
コード例 #12
0
ファイル: PodioView.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/views/get-last-view-27663
  */
 public static function get_last($app_id)
 {
     return self::member(Podio::get("/view/app/{$app_id}/last"));
 }
コード例 #13
0
ファイル: PodioFlow.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/flows/get-flow-context-26313659
  */
 public static function get_flow_context($flow_id)
 {
     return Podio::get("/flow/{$flow_id}/context/")->json_body();
 }
コード例 #14
0
ファイル: PodioContact.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/contacts/get-skills-1346872
  */
 public static function get_skills($attributes = array())
 {
     return Podio::get("/contact/skill/", $attributes)->json_body();
 }
コード例 #15
0
ファイル: PodioSpace.php プロジェクト: buonzz-systems/cmpress
 /**
  * @see https://developers.podio.com/doc/spaces/get-top-spaces-22477
  */
 public static function get_top($attributes = array())
 {
     return self::listing(Podio::get("/space/top/", $attributes));
 }
コード例 #16
0
 /**
  * @see https://developers.podio.com/doc/items/get-item-revision-22373
  */
 public static function get_for($item_id)
 {
     return self::listing(Podio::get("/item/{$item_id}/revision/"));
 }
コード例 #17
0
ファイル: PodioVoting.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/voting/get-list-of-users-with-votes-117729546
  */
 public static function get_list_of_users_with_votes($item_id, $voting_id)
 {
     return Podio::get("/voting/item/{$item_id}/voting/{$voting_id}/user")->json_body();
 }
コード例 #18
0
 /**
  * @see https://developers.podio.com/doc/users/get-user-status-22480
  */
 public static function get()
 {
     return self::member(Podio::get("/user/status"));
 }
コード例 #19
0
 /**
  * @see https://developers.podio.com/doc/organizations/get-organization-members-50661
  */
 public static function get_for_org($org_id)
 {
     return self::listing(Podio::get("/org/{$org_id}/member/"));
 }
コード例 #20
0
 /**
  * @see https://developers.podio.com/doc/tags/get-objects-on-organization-with-tag-48478
  */
 public static function get_for_org($org_id, $attributes = array())
 {
     return self::listing(Podio::get("/tag/org/{$org_id}/search/", $attributes));
 }
コード例 #21
0
 /**
  * @see https://developers.podio.com/doc/space-members/get-space-members-by-role-68043
  */
 public static function get_by_role($space_id, $role)
 {
     return self::listing(Podio::get("/space/{$space_id}/member/{$role}/"));
 }
コード例 #22
0
 /**
  * @see https://developers.podio.com/doc/applications/get-app-field-22353
  */
 public static function get($app_id, $field_id)
 {
     return self::member(Podio::get("/app/{$app_id}/field/{$field_id}"));
 }
コード例 #23
0
 /**
  * @see https://developers.podio.com/doc/organizations/get-organization-statistics-28734
  */
 public static function get_statistics($org_id, $attributes = array())
 {
     return Podio::get("/org/{$org_id}/statistics", $attributes)->json_body();
 }
コード例 #24
0
ファイル: PodioComment.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/comments/get-comments-on-object-22371
  */
 public static function get_for($ref_type, $ref_id, $attributes = array())
 {
     return self::listing(Podio::get("/comment/{$ref_type}/{$ref_id}/", $attributes));
 }
コード例 #25
0
ファイル: PodioTask.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/tasks/get-task-count-38316458
  */
 public static function count($ref_type, $ref_id)
 {
     return Podio::get("/task/{$ref_type}/{$ref_id}/count")->json_body();
 }
コード例 #26
0
ファイル: PodioApp.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/applications/get-space-app-dependencies-45779
  */
 public static function dependencies_space($space_id)
 {
     $result = Podio::get("/space/{$space_id}/dependencies/")->json_body();
     $result['apps'] = self::listing($result['apps']);
     return $result;
 }
コード例 #27
0
 /**
  * @see https://developers.podio.com/doc/calendar/get-item-field-calendar-as-ical-10195681
  */
 public static function ical_field($item_id, $field_id)
 {
     return Podio::get("/calendar/item/{$item_id}/field/{$field_id}/ics/")->body;
 }
コード例 #28
0
ファイル: PodioRating.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/ratings/get-rating-own-84128
  */
 public static function get_own_for_type($ref_type, $ref_id, $rating_type)
 {
     return self::member(Podio::get("/rating/{$ref_type}/{$ref_id}/{$rating_type}/self"));
 }
コード例 #29
0
ファイル: PodioItem.php プロジェクト: apachejack/podio-php
 /**
  * @see https://developers.podio.com/doc/items/get-top-values-for-field-68334
  */
 public static function get_top_values_by_field($field_id, $attributes = array())
 {
     return self::listing(Podio::get("/item/field/{$field_id}/top/", $attributes));
 }
コード例 #30
0
 /**
  * @see https://developers.podio.com/doc/stream/get-app-stream-264673
  */
 public static function personal($attributes = array())
 {
     return self::listing(Podio::get("/stream/personal/", $attributes));
 }