/** * @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']; }
/** * @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)); }
/** * @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")); }
/** * @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); }
/** * @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); }
/** * @see https://developers.podio.com/doc/notifications/star-notification-295910 */ public static function star($notification_id) { return Podio::post("/notification/{$notification_id}/star"); }
/** * @see https://developers.podio.com/doc/spaces/create-space-22390 */ public static function create($attributes = array()) { return Podio::post("/space/", $attributes)->json_body(); }
/** * @see https://developers.podio.com/doc/embeds/add-an-embed-726483 */ public static function create($attributes = array()) { return self::member(Podio::post("/embed/", $attributes)); }
/** * @see https://developers.podio.com/doc/integrations/refresh-integration-86987 */ public static function refresh($app_id) { return Podio::post("/integration/{$app_id}/refresh"); }
/** * @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(); }
/** * @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); }
/** * @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']; }
/** * @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(); }
/** * @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(); }
/** * @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(); }
/** * @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']; }
/** * @see https://developers.podio.com/doc/applications/deactivate-app-43821 */ public static function deactivate($app_id) { return Podio::post("/app/{$app_id}/deactivate"); }
/** * @see https://developers.podio.com/doc/search/search-globally-22488 */ public static function search($attributes = array()) { return self::listing(Podio::post("/search/", $attributes)); }
/** * @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); }
/** * @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)); }
/** * @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']; }
/** * Bootstrap organization. Only applicable on Podio Platform */ public static function bootstrap($attributes = array()) { return Podio::post("/org/bootstrap", $attributes); }
/** * @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']; }
/** * 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)); }
/** * @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); }
/** * @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"); }
/** * @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(); }
/** * @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']; }
/** * @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); }
/** * @see https://developers.podio.com/doc/reference/search-references-13312595 */ public static function search($attributes = array()) { return Podio::post("/reference/search", $attributes)->json_body(); }