Authentication overview | Docs | Twitter Developer Platform

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

Your App's API Keys and Bearer Token, as well as your personal Access Token and Access Token Secret can be obtained from the Twitter developer Apps section ... Authentication Overview Guides OAuth1.0a OAuth2.0 Basicauthentication FAQ APIreference TwitterAPIshandleenormousamountsofdata.Thewayweensurethisdataissecuredfordevelopersandusersalikeisthroughauthentication.Thereareafewmethodsforauthentication,eachlistedbelow. Mostdeveloperswillnotneedtodealwiththecomplexitiessurroundingauthenticationsinceclientlibrariesautomaticallyhandlethesedifficulties. Youcanfindalistofavailableclientlibrariesonour toolsandlibrariespages>   Authenticationmethods OAuth1.0aUserContext OAuth1.0aallowsanauthorizedTwitterdeveloperApptoaccessprivateaccountinformationorperformaTwitteractiononbehalfofaTwitteraccount. Learnmore Basicauthentication ManyofTwitter’senterpriseAPIsrequiretheuseofHTTPBasicAuthentication. Learnmore OAuth2.0BearerToken OAuth2.0BearerTokenallowsaTwitterdeveloperapptoaccessinformationpubliclyavailableonTwitter. Learnmore OAuth2.0AuthorizationCodeFlowwithPKCE OAuth2.0UserContextallowsyoutoauthenticateonbehalfofanotheraccountwithgreatercontroloveranapplication’sscope,andauthorizationflowsacrossmultipledevices. Learnmore Pleasenote YourApp'sAPIKeysandBearerToken,aswellasyourpersonalAccessTokenandAccessTokenSecretcanbeobtainedfromthe TwitterdeveloperApps section foundinthe developerportal.  Ifyouwouldliketomakerequestsonbehalfofanotheruser,youwillneedtogenerateaseparatesetofAccessTokensforthatuserusingthe3-leggedOAuthflow,andpassthatuser'stokenswithyourOAuth1.0aUserContextorOAuth2.0usercontextrequests.   Additionalresources Guides Learnhowtogeneratetokensandauthenticaterequestsusingourintegrationguides. Learnmore APIreference Reviewourreferenceguidesforourauthenticationendpoints. Learnmore Protectyourself Makesureyouunderstandthebestpracticesforstoringyourkeysandtokens. Learnmore Question? VisitourFAQs. Learnmore ByusingTwitter’sservicesyouagreetoourCookiesUse.Weusecookiesforpurposesincludinganalytics,personalisation,andads. OK ThispageandcertainotherTwittersitesplaceandreadthirdpartycookiesonyourbrowserthatareusedfornon-essentialpurposesincludingtargetingofads. Throughthesecookies,Google,LinkedInandDemandbasecollectpersonaldataaboutyoufortheirownpurposes. Learnmore. Accept Decline



請為這篇文章評分?