[Vuejs]-GAPI VS Standard HTTP Rest Call

0👍

The gapi js library is going to have all of the headers that you need for the application to work properly. It effectively abstracts out a lot of the configuration that you would have to do to your HTTP Library. Then your library can be configured for your api. For example, lets say you have authentication built into your app and you are authenticating via api tokens. Well, if Google uses the same thing, then you have to change your libraries configuration each time you query the api. The same thing goes for Google Analytics, Google Maps, and Facebook OAuth API.

Leave a comment