Users.dataSources.datasets: get

시작 및 종료 시간이 데이터 세트의 최소 시작 시간과 최대 종료 시간의 지정된 범위와 겹치는 모든 데이터 포인트가 포함된 데이터 세트를 반환합니다. 특히 시작 시간이 데이터 세트 종료 시간보다 작거나 같고 종료 시간이 데이터 세트 시작 시간보다 크거나 같은 데이터 포인트입니다. 지금 사용해 보기

요청

HTTP 요청

GET https://www.googleapis.com/fitness/v1/users/userId/dataSources/dataSourceId/datasets/datasetId

매개변수

매개변수 이름 설명
경로 매개변수
dataSourceId string 데이터 세트를 만든 데이터 소스의 데이터 스트림 ID입니다.
datasetId string 최소 데이터 포인트 시작 시간과 최대 데이터 포인트 종료 시간을 종합한 데이터 세트 식별자로, 에포크에서 나노초로 표시됩니다. ID 형식은 다음과 같습니다. "startTime-endTime" 여기서 startTimeendTime는 64비트 정수입니다.
userId string 식별된 사용자의 데이터 세트를 검색합니다. me를 사용하여 인증된 사용자를 나타냅니다. 현재 me만 지원됩니다.
쿼리 매개변수(선택사항)
limit integer 지정된 경우 이 많은 데이터 포인트는 데이터 세트에 포함되지 않습니다. 데이터 세트에 더 많은 데이터 포인트가 있으면 nextPageToken이 데이터 세트 응답에 설정됩니다. 시간 범위 종료부터 한도가 적용됩니다. 즉, pageToken가 없으면 최근 데이터 포인트 limit개가 반환됩니다.
pageToken string 대규모 데이터 세트를 페이징하는 데 사용되는 연속 토큰입니다. 데이터 세트의 다음 페이지를 가져오려면 이 매개변수를 이전 응답의 nextPageToken 값으로 설정합니다. 후속 호출을 호출할 때마다 데이터 부분 종료 타임스탬프가 이전 부분 응답보다 엄격하게 작은 부분 데이터 세트가 생성됩니다.

승인

이 요청에는 다음 범위 중 하나 이상을 포함하는 승인이 필요합니다.

범위
https://www.googleapis.com/auth/fitness.activity.read
https://www.googleapis.com/auth/fitness.activity.write
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
https://www.googleapis.com/auth/fitness.body.read
https://www.googleapis.com/auth/fitness.body.write
https://www.googleapis.com/auth/fitness.nutrition.read
https://www.googleapis.com/auth/fitness.nutrition.write
https://www.googleapis.com/auth/fitness.blood_pressure.read
https://www.googleapis.com/auth/fitness.blood_pressure.write
https://www.googleapis.com/auth/fitness.blood_glucose.read
https://www.googleapis.com/auth/fitness.blood_glucose.write
https://www.googleapis.com/auth/fitness.oxygen_saturation.read
https://www.googleapis.com/auth/fitness.oxygen_saturation.write
https://www.googleapis.com/auth/fitness.body_temperature.read
https://www.googleapis.com/auth/fitness.body_temperature.write
https://www.googleapis.com/auth/fitness.reproductive_health.read
https://www.googleapis.com/auth/fitness.reproductive_health.write

자세한 내용은 인증 및 승인 페이지를 참고하세요.

요청 본문

이 메소드를 사용할 때는 요청 본문을 제공하지 마세요.

응답

요청에 성공하면 이 메서드가 응답 본문에서 Users.dataSources.datasets 리소스를 반환합니다.

사용해 보기

아래의 API 탐색기를 사용하여 실시간 데이터를 대상으로 이 메소드를 호출하고 응답을 확인해 보세요.