Users.dataSources: delete

מחיקת מקור הנתונים שצוין. הבקשה תיכשל אם מקור הנתונים מכיל נקודות נתונים. כדאי לנסות עכשיו.

שליחת בקשה

בקשת HTTP

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

פרמטרים

שם הפרמטר ערך תיאור
פרמטרים של נתיב
dataSourceId string המזהה של מקור הנתונים שצריך למחוק.
userId string אחזור מקור נתונים עבור האדם שזוהה. מאפיין me משמש כדי לציין את המשתמש המאומת. רק me נתמכים בשלב זה.

הרשאה

הבקשה הזו מחייבת הרשאה עם לפחות אחד מההיקפים הבאים:

היקף ההרשאות
https://www.googleapis.com/auth/fitness.activity.write
https://www.googleapis.com/auth/fitness.location.write
https://www.googleapis.com/auth/fitness.body.write
https://www.googleapis.com/auth/fitness.nutrition.write
https://www.googleapis.com/auth/fitness.blood_pressure.write
https://www.googleapis.com/auth/fitness.blood_glucose.write
https://www.googleapis.com/auth/fitness.oxygen_saturation.write
https://www.googleapis.com/auth/fitness.body_temperature.write
https://www.googleapis.com/auth/fitness.reproductive_health.write

מידע נוסף זמין בדף אימות והרשאה.

גוף הבקשה

אין לספק גוף בקשה בשיטה זו.

תשובה

אם היא מוצלחת, השיטה הזו מחזירה משאב User.dataSources בגוף התגובה.

רוצה לנסות?

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