앱
설치 단계 및 이 플러그인의 전체 마크다운 가이드가 포함된 설정 지시를 복사하세요.
앱은 Capgo의 기초적인 엔터티입니다. 각 앱은 Capacitor 애플리케이션을 대표하며 플랫폼을 통해 관리하고 업데이트 할 수 있습니다. 앱 API은 앱 구성 설정을 만들 수, 조회할 수, 업데이트 할 수, 삭제할 수 있습니다.
__CAPGO_KEEP_0__
__CAPGO_KEEP_1__An app in Capgo represents your Capacitor application and includes:
- 애플리케이션을 이해하는 섹션__CAPGO_KEEP_0__ 내의 앱은 __CAPGO_KEEP_1__ 애플리케이션을 나타내고 다음을 포함합니다.
- __CAPGO_KEEP_2____CAPGO_KEEP_3__
- __CAPGO_KEEP_4____CAPGO_KEEP_5__
- __CAPGO_KEEP_6____CAPGO_KEEP_7__
- __CAPGO_KEEP_8__:
- : :
:
:- : :
- : : Protect your API keys and access credentials
- : :
- : : 앱 통계 및 성능을 정기적으로 확인하세요.
- Backup: 중요한 앱의 구성 파일 백업을 유지하세요.
Endpoints
엔드포인트GET
GEThttps://api.capgo.app/app/
앱에 대한 정보를 조회하세요.
Query Parameters
쿼리 매개변수page: 옵션. 페이지 번호 (페이징)limit: 옵션. 한 페이지당 결과 수 (기본값: 50)org_id: 옵션입니다. 사용자가 접근 가능한 모든 조직의 앱을 반환합니다. 조직 ID가 제공되지 않으면
For getting a specific app:
- URL 경로에 앱 ID를 사용하세요:
https://api.capgo.app/app/:app_id
Response Type
Response Type참고: last_version 최근 업로드된 버전을 의미합니다.
interface App { app_id: string created_at: string | null default_upload_channel: string icon_url: string id: string | null last_version: string | null // last bundle (version) name name: string | null owner_org: string retention: number transfer_history: Json[] | null updated_at: string | null user_id: string | null}# Get all appscurl -H "authorization: your-api-key" \ "https://api.capgo.app/app/"
# Get apps from a specific organizationcurl -H "authorization: your-api-key" \ "https://api.capgo.app/app/?org_id=046a36ac-e03c-4590-9257-bd6c9dba9ee8"
# Get specific appcurl -H "authorization: your-api-key" \ "https://api.capgo.app/app/com.demo.app"예시 응답
예시 응답 섹션{ "data": [ { "app_id": "com.demo.app", "created_at": "2024-01-01T00:00:00Z", "default_upload_channel": "dev", "icon_url": "https://example.com/icon.png", "id": "550e8400-e29b-41d4-a716-446655440000", "last_version": "1.0.0", "name": "Demo App", "owner_org": "046a36ac-e03c-4590-9257-bd6c9dba9ee8", "retention": 2592000, "transfer_history": null, "updated_at": "2024-01-01T00:00:00Z", "user_id": "6aa76066-55ef-4238-ade6-0b32334a4097" } ]}POST
POST 섹션https://api.capgo.app/app/
새 앱을 만듭니다.
요청 본문
요청 본문 섹션interface CreateApp { app_id: string name: string icon?: string owner_org: string}예시 요청
예시 요청 섹션# Create new appcurl -X POST \ -H "authorization: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "name": "My New App", "app_id": "com.demo.myapp", // this id is unique in Capgo This cannot be reused by any account. "icon": "https://example.com/icon.png", "owner_org": "046a36ac-e03c-4590-9257-bd6c9dba9ee8" }' \ https://api.capgo.app/app/성공 응답
성공 응답 섹션{ "app_id": "My New App", "created_at": "2024-01-01T00:00:00Z", "default_upload_channel": "dev", "icon_url": "https://example.com/icon.png", "id": "550e8400-e29b-41d4-a716-446655440000", "name": "My New App", "owner_org": "046a36ac-e03c-4590-9257-bd6c9dba9ee8", "retention": 2592000, "updated_at": "2024-01-01T00:00:00Z"}PUT
PUT 섹션https://api.capgo.app/app/:app_id
URL 경로에 지정된 앱 ID를 사용하여 기존 앱을 업데이트합니다.
요청 본문
요청 본문 섹션interface UpdateApp { name?: string icon?: string retention?: number}예제 요청
예제 요청 섹션curl -X PUT \ -H "authorization: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated App Name", "icon": "https://example.com/updated-icon.png", "retention": 45 }' \ https://api.capgo.app/app/com.demo.app성공 응답
성공 응답 섹션{ "app_id": "com.demo.app", "created_at": "2024-01-01T00:00:00Z", "default_upload_channel": "dev", "icon_url": "https://example.com/updated-icon.png", "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Updated App Name", "owner_org": "046a36ac-e03c-4590-9257-bd6c9dba9ee8", "retention": 45, "updated_at": "2024-01-01T00:00:00Z"}DELETE
DELETE 섹션https://api.capgo.app/app/:app_id
URL 경로에 지정된 앱 ID를 포함하여 앱과 관련된 모든 리소스를 삭제합니다. 이 작업은 취소할 수 없으므로极度 주의가 필요합니다.
예제 요청
예제 요청 섹션curl -X DELETE \ -H "authorization: your-api-key" \ https://api.capgo.app/app/com.demo.app성공 응답
성공 응답 섹션{ "status": "ok"}오류 처리
오류 처리 섹션오류 시나리오 및 응답:
// App not found{ "error": "App not found", "status": "KO"}
// Duplicate custom ID{ "error": "Custom ID already in use", "status": "KO"}
// Invalid parameters{ "error": "Invalid app configuration", "status": "KO"}
// Permission denied{ "error": "Insufficient permissions to manage app", "status": "KO"}
// Organization access denied{ "status": "You do not have access to this organization"}일반적인 사용 사례
사용 사례 섹션- 새 앱 만들기
// Set up a new app{ "name": "Production App", "owner_org": "046a36ac-e03c-4590-9257-bd6c9dba9ee8"}- 앱 구성 업데이트
// Change app name and icon{ "name": "Rebranded App Name", "icon": "https://example.com/new-icon.png"}- __CAPGO_KEEP_1__
// Configure automatic bundle cleanup{ "retention": 30 // Keep bundles for 30 days}- __CAPGO_KEEP_2__
# List all apps in a specific organizationcurl -H "authorization: your-api-key" \ "https://api.capgo.app/app/?org_id=046a36ac-e03c-4590-9257-bd6c9dba9ee8"__CAPGO_KEEP_4__
__CAPGO_KEEP_5__- __CAPGO_KEEP_6____CAPGO_KEEP_0__
- __CAPGO_KEEP_7____CAPGO_KEEP_8__
- 접근 제어: 앱 설정을 수정할 수 있는 팀원들을 관리하세요
- 백업 전략: 중요한 앱 구성 및 설정을 백업하세요
앱에서 계속하기
앱에서 계속하기 섹션 제목__CAPGO_KEEP_0__을 사용하는 경우 앱 API과 연결하세요 API 개요 API 개요에서 구현 세부 정보를 확인하세요 소개 Introduction에서 구현 세부 정보를 위해 API 키 API 키에서 구현 세부 정보를 위해 기기 기기에서 구현 세부 정보를 위해 패키지 패키지에서 구현 세부 정보를 위해