नीचे दी गई सूची में, इस तरीके को इस्तेमाल करने के सामान्य उदाहरण दिए गए हैं. किसी इस्तेमाल के उदाहरण का ब्यौरा देखने के लिए, उस पर कर्सर घुमाएं या एपीआई एक्सप्लोरर में पैरामीटर की वैल्यू के सैंपल लोड करने के लिए, इस्तेमाल के उदाहरण पर क्लिक करें. फ़ुलस्क्रीन एपीआई एक्सप्लोरर खोलकर, ऐसे कोड सैंपल देखे जा सकते हैं जो एक्सप्लोरर में डाली गई पैरामीटर वैल्यू को डाइनैमिक तौर पर अपडेट करते हैं.
नीचे दी गई टेबल में, इस तरीके को इस्तेमाल करने के सामान्य उदाहरण दिए गए हैं. एपीआई एक्सप्लोरर में सैंपल पैरामीटर वैल्यू लोड करने के लिए, इस्तेमाल के उदाहरण के नाम पर क्लिक करें. इसके अलावा, फ़ुलस्क्रीन एपीआई एक्सप्लोरर में, इस्तेमाल के उदाहरण के लिए कोड सैंपल देखे जा सकते हैं. इसके लिए, इस्तेमाल के उदाहरण के नीचे दिए गए कोड आइकॉन पर क्लिक करें. फ़ुलस्क्रीन यूज़र इंटरफ़ेस (यूआई) में, पैरामीटर और प्रॉपर्टी की वैल्यू को अपडेट किया जा सकता है. साथ ही, आपकी डाली गई वैल्यू दिखाने के लिए, कोड सैंपल डाइनैमिक तौर पर अपडेट होंगे.
इस तरीके का एक सामान्य इस्तेमाल है, जिसके बारे में नीचे बताया गया है. ब्यौरे के नीचे दिए गए बटन, एपीआई एक्सप्लोरर को सैंपल वैल्यू से दिखाते हैं या फ़ुलस्क्रीन एपीआई एक्सप्लोरर को खोलकर, उन वैल्यू का इस्तेमाल करने वाले कोड सैंपल दिखाते हैं. वैल्यू बदलने पर, कोड सैंपल भी डाइनैमिक तौर पर अपडेट हो जाते हैं.
Use cases | |
---|---|
list (by channel ID) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the id request parameter to identify the channel by its YouTube channel ID. |
list (by YouTube handle) | This example retrieves channel data for the "Google for Developers" YouTube channel. It uses the forHandle request parameter to identify the channel by its YouTube handle. |
list (by YouTube username) | This example retrieves channel data for the GoogleDevelopers YouTube channel. It uses the forUsername request parameter to identify the channel by its YouTube username. |
list (my channel) | This example retrieves the channel data for the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return channels owned by the user authorizing the request. |
list (channels managed by a content owner) | This example retrieves a list of channels managed by the specified YouTube content owner. |