नीचे दी गई सूची में, इस तरीके को इस्तेमाल करने के सामान्य उदाहरण दिए गए हैं. किसी इस्तेमाल के उदाहरण का ब्यौरा देखने के लिए, उस पर कर्सर घुमाएं या एपीआई एक्सप्लोरर में पैरामीटर की वैल्यू के सैंपल लोड करने के लिए, इस्तेमाल के उदाहरण पर क्लिक करें. फ़ुलस्क्रीन एपीआई एक्सप्लोरर खोलकर, ऐसे कोड सैंपल देखे जा सकते हैं जो एक्सप्लोरर में डाली गई पैरामीटर वैल्यू को डाइनैमिक तौर पर अपडेट करते हैं.
नीचे दी गई टेबल में, इस तरीके को इस्तेमाल करने के सामान्य उदाहरण दिए गए हैं. एपीआई एक्सप्लोरर में सैंपल पैरामीटर वैल्यू लोड करने के लिए, इस्तेमाल के उदाहरण के नाम पर क्लिक करें. इसके अलावा, फ़ुलस्क्रीन एपीआई एक्सप्लोरर में, इस्तेमाल के उदाहरण के लिए कोड सैंपल देखे जा सकते हैं. इसके लिए, इस्तेमाल के उदाहरण के नीचे दिए गए कोड आइकॉन पर क्लिक करें. फ़ुलस्क्रीन यूज़र इंटरफ़ेस (यूआई) में, पैरामीटर और प्रॉपर्टी की वैल्यू को अपडेट किया जा सकता है. साथ ही, आपकी डाली गई वैल्यू दिखाने के लिए, कोड सैंपल डाइनैमिक तौर पर अपडेट होंगे.
इस तरीके का एक सामान्य इस्तेमाल है, जिसके बारे में नीचे बताया गया है. ब्यौरे के नीचे दिए गए बटन, एपीआई एक्सप्लोरर को सैंपल वैल्यू से दिखाते हैं या फ़ुलस्क्रीन एपीआई एक्सप्लोरर को खोलकर, उन वैल्यू का इस्तेमाल करने वाले कोड सैंपल दिखाते हैं. वैल्यू बदलने पर, कोड सैंपल भी डाइनैमिक तौर पर अपडेट हो जाते हैं.
Use cases | |
---|---|
list (by video ID) | This example retrieves information about a specific video. It uses the id parameter to identify the video. |
list (multiple video IDs) | This example retrieves information about a group of videos. The id parameter value is a comma-separated list of YouTube video IDs. You might issue a request like this to retrieve additional information about the items in a playlist or the results of a search query. |
list (most popular videos) | This example retrieves a list of YouTube's most popular videos. The regionCode parameter identifies the country for which you are retrieving videos. The sample code is set to default to return the most popular videos in the United States. You could also use the videoCategoryId parameter to retrieve the most popular videos in a particular category. |
list (my liked videos) | This example retrieves a list of videos liked by the user authorizing the API request. By setting the rating parameter value to dislike , you could also use this code to retrieve disliked videos. |