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
  ]
}
שם הנכס ערך תיאור הערות
dataSource[] list מקור נתונים שנוצר בעבר.

רוצה לנסות?

כדי לקרוא לשיטה הזו על נתונים בזמן אמת ולראות את התגובה, אתם צריכים להשתמש ב-APIs Explorer.