xdevplatform / Twitter-API-v2-sample-code

Sample code for the Twitter API v2 endpoints
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api
Apache License 2.0
2.65k stars 984 forks source link

[question]Is authorization response necessary? #94

Closed albas99 closed 2 years ago

albas99 commented 2 years ago

https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/54b161835fc7fb7c16e358f1c46ec12b4c0ec418/Bookmarks-lookup/bookmarks_lookup.py#L55

I'm referencing both the bookmarks lookup code and this code for my project(I'm a total noob), and I noticed that the latter isn't using any authorization response for their twitter authentication but the former is. This has gotten me confused and wondering, is the authorization response necessary for the authentication or is it just used there for demo purposes and better explanation?