모든 설정이 완료되면 Android Over The Air API에 요청을 보낼 수 있습니다.
다음 코드 샘플은 몇 가지 간단한 요청을 보내는 방법을 보여줍니다.
- 배포 목록을 가져옵니다.
- 목록에서 특정 배포를 가져옵니다.
- 특정 배포를 업데이트합니다.
전체 메서드 목록은 참조 문서를 확인하세요.
배포 목록 가져오기
배포 목록을 가져오려면 다음 코드를 사용하세요.
프로토콜
GET /v1/deployments HTTP/1.1 Host: androidovertheair.googleapis.com
특정 배포를 가져옵니다.
목록에서 특정 배포를 검색하려면 다음 코드를 사용합니다.
프로토콜
GET /v1/deployment id HTTP/1.1 Host: androidovertheair.googleapis.com
배포 업데이트
배포를 업데이트하려면 다음 코드를 사용합니다.
프로토콜
PUT /v1/deployment id HTTP/1.1 Host: androidovertheair.googleapis.com { "deployment": updated_deployment, "versionTag": { { "version": version } }, }
차트 가져오기
이 예에서는 GET
요청에 복잡한 쿼리 매개변수가 어떻게 제공될 수 있는지 보여줍니다.
24시간 해상도와 5개의 차트 선이 있는 차트를 가져오려면 다음 코드를 사용하세요.
프로토콜
GET /v1/deployment id/groups/group id/charts/chart id?options.resolution=RESOLUTION_TWENTY_FOUR_HOURS&options.maxChartLines=5 HTTP/1.1 Host: androidovertheair.googleapis.com