You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each API method, we repeat the same lines of code—providing the proper HTTP headers, pre-validating they API key, sanitizing the JSONP callback, embedding the API version, and including the callback. Break these out into one or more methods, so that we don't repeat ourselves with each method.
Activity
Move API key authentication into a method