Users.dataSources: list

제공된 OAuth 범위를 사용하여 개발자에게 표시되는 모든 데이터 소스를 나열합니다. 이 목록은 일부일 뿐 전체 목록이 아닙니다. 사용자에게 다른 개발자에게만 표시되는 비공개 데이터 소스가 있거나 다른 범위를 사용한 호출이 있을 수 있습니다. 지금 사용해 보기

요청

HTTP 요청

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

매개변수

매개변수 이름 설명
경로 매개변수
userId string 확인된 사람의 데이터 소스를 나열합니다. me를 사용하여 인증된 사용자를 나타냅니다. 현재는 me만 지원됩니다.
선택적 쿼리 매개변수
dataTypeName string 목록에 포함할 데이터 유형의 이름입니다. 지정하지 않으면 모든 데이터 소스가 반환됩니다.

승인

이 요청을 처리하려면 다음 범위 중 하나 이상의 승인을 받아야 합니다.

범위
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

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

요청 본문

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

응답

요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.

{
  "dataSource": [
    users.dataSources Resource
  ]
}
속성 이름 설명 Notes
dataSource[] list 이전에 만든 데이터 소스

사용해 보기

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