YouTube Data API (v3) Code Samples - Google Developers

文章推薦指數: 80 %
投票人數:10人

You can then click on any use case to populate the APIs Explorer widget with sample parameter and property values for that use case. YouTube DataAPI English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어 Signin Home Guides Reference Samples Support YouTube DataAPI Home Guides Reference Samples Support Index Java,JavaScript,PHP,Python Usecasesandcodesamples Otherlanguages AppsScriptGo.NETRuby Home Products YouTube DataAPI Samples YouTubeDataAPI(v3)CodeSamples YoucanexplorecommonusecasesfortheYouTubeDataAPIandYouTubeLiveStreamingAPIontheusecasesandcodesamplespage. ThepageletsyouselectanAPIresourceandmethodandthenlistscommonusecasesforthatmethod.YoucanthenclickonanyusecasetopopulatetheAPIsExplorerwidgetwithsampleparameterandpropertyvaluesforthatusecase.YoucanalsoopenthefullscreenAPIsExplorerwidgettoseeworkingcodesamplesforJava,JavaScript,PHP,andPython.IfyouupdateparameterorpropertyvaluesintheAPIsExplorer,thecodesamplesalsoupdatetoreflectyourchanges. Thefollowingsectionlistscodesamplesavailableinotherlanguages. Standalonecodesnippets ThelistsbelowidentifycodesamplesavailablefortheYouTubeDataAPI(v3)inlanguagesotherthanJava,JavaScript,PHP,andPython.Asnotedintheprevioussection,codesamplesforthoselanguagesareavailableontheusecasesandcodesamplespage. AppsScript Codesample Methods Addachannelsubscription subscriptions.insert Retrievecurrentuser'suploads channels.list Searchforvideosrelatedtoakeyword search.list Updateavideo videos.update Go Codesample Methods Authorizearequest Anymethodrequiringauthorization. Retrievecurrentuser'suploads playlistItems.list Searchforvideosrelatedtoakeyword search.list Uploadavideo videos.insert .NET Codesample Methods Createaplaylist playlists.insert Retrievecurrentuser'suploadedvideos channels.list playlistItems.list Searchforvideosrelatedtoakeyword search.list Uploadavideo videos.insert Ruby Codesample Methods Authorizearequest Anymethodrequiringauthorization. Createachannelsubscription subscriptions.insert Retrievecurrentuser'suploads channels.list playlistItems.list Searchforvideosrelatedtoakeyword search.list Uploadavideo videos.insert Youmayalsobeabletoadaptoneoftheother Rubysamples. Exceptasotherwisenoted,thecontentofthispageislicensedundertheCreativeCommonsAttribution4.0License,andcodesamplesarelicensedundertheApache2.0License.Fordetails,seetheGoogleDevelopersSitePolicies.JavaisaregisteredtrademarkofOracleand/oritsaffiliates. Lastupdated2020-04-17UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Blog ThelatestnewsontheYouTubeblog GitHub FindAPIcodesamplesandotherYouTubeopen-sourceprojects. IssueTracker Somethingwrong?Sendusabugreport! StackOverflow Askaquestionundertheyoutube-apitag Videos CheckouttheYouTubeDeveloperRelationsteam'sYouTubechannel Tools GoogleAPIsExplorer YouTubePlayerDemo ConfigureaSubscribeButton IssueTracker Fileabug Requestafeature Seeopenissues ProductInfo TermsofService BrandingGuidelines MonetizationGuidelines APIssubjecttoDeprecationPolicy Android Chrome Firebase GoogleCloudPlatform Allproducts Terms Privacy SignupfortheGoogleDevelopersnewsletter Subscribe English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어



請為這篇文章評分?