LiveCuepoints: insert
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
השיטה הזו הוצאה משימוש והוחלפה בשיטה
liveBroadcasts.cuepoint
.
הוספת נקודת מגע עם שידור חי. בשלב זה, בקשות שנשלחות לשיטה הזו
צריכות לקבל הרשאה מחשבון שמשויך
לבעלי תוכן ב-YouTube.
שליחת בקשה
בקשת HTTP
POST https://www.googleapis.com/youtube/partner/v1/liveCuepoints
הרשאה
לבקשה הזו נדרשת הרשאה עם לפחות אחד מהיקפי ההרשאות הבאים (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/youtubepartner |
פרמטרים
הטבלה הבאה מפרטת את הפרמטרים שנתמכים על ידי שאילתה זו. כל הפרמטרים המפורטים הם פרמטרים של שאילתה.
פרמטרים |
פרמטרים נדרשים |
channelId |
string
הפרמטר channelId מזהה את הערוץ שהוא הבעלים של הערוץ שאליו מוכנסת נקודת היעד. |
onBehalfOfContentOwner |
string
הפרמטר onBehalfOfContentOwner מזהה את הבעלים של התוכן שהמשתמש פועל בשמו. |
גוף הבקשה
בגוף הבקשה יש משאב של LiveCuepoint.
לגבי המשאב הזה:
שגיאות
הטבלה הבאה מזהה הודעות שגיאה שה-API יכול להחזיר בתגובה לקריאה לשיטה הזו. מידע נוסף זמין בתיעוד של הודעת השגיאה.
סוג השגיאה |
פרטי השגיאה |
תיאור |
invalidValue (400) |
conflictingTimeFields |
ניתן לציין רק אחד מ-offsetTimeMs ומ-walltime . |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-02-22 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2023-02-22 (שעון UTC)."],[[["This API method for inserting a cuepoint into a live broadcast has been deprecated and is now replaced by the `liveBroadcasts.cuepoint` method."],["Using this method requires authorization with the `https://www.googleapis.com/auth/youtubepartner` scope and being associated with a YouTube Content Owner."],["The required parameters for this method are `channelId`, which identifies the channel owning the broadcast, and `onBehalfOfContentOwner`, which identifies the content owner."],["The request body must include a `liveCuepoint` resource with specified values for `broadcastId` and `settings.cueType`, and can optionally set `settings.offsetTimeMs`, `settings.walltime`, or `settings.durationSecs`."],["The API returns a `liveCuepoint` resource upon success, and an error, such as `invalidValue (400)` for `conflictingTimeFields` is returned if there are any errors."]]],["This API method, now deprecated, was used to insert a cuepoint into a live broadcast via a POST request to `https://www.googleapis.com/youtube/partner/v1/liveCuepoints`. Authorization via the `https://www.googleapis.com/auth/youtubepartner` scope was required. Requests needed the `channelId` and `onBehalfOfContentOwner`. The request body required the `broadcastId` and `settings.cueType` properties to be set in a `liveCuepoint` resource. One of `offsetTimeMs` and `walltime` is valid. A successful response returned the `liveCuepoint` resource.\n"]]