2

I heard that twitter practices "dogfooding," meaning that they use their own API for the website. However, I don't really understand how that's true. When I use Firebug, I see that all the AJAX calls are made to some URL like:

https://twitter.com/{username}/{whatever else}

Rather than:

https://api.twitter.com/1.1/statuses/...

If they are using different URL's, how are they using their own API? I think I have the wrong notion of what an API is... Also, how would it work with OAuth? Do they validate themselves?

Robert Harvey
  • 200,592

2 Answers2

3

Twitter is definitely able to configure their web servers so that some HTTP requests are going (thru a "private route") to their "API".

gnat
  • 20,543
  • 29
  • 115
  • 306
0

If they are using different URL's, how are they using their own API?

An API is software, while a URL points to a particular instance of said software. It's perfectly sensible to have different installations of the same program for different audiences, exactly the same as Microsoft's internal git server being different than your own.

DougM
  • 6,379