You are here: Web Services > Consuming Web Services > Web API Client Example Library > What do you need to do before you can run the examples?

What do you need to do before you can run the examples?

Most examples require you to have an account with the respective providers.

You need to obtain an API key for services that don't access user personal details (e.g. Google Translate, Google Maps Geocoding)

For those that access user details (authentication etc), they are generally done within the OAuth2 framework.

All OAuth2 use cases requires you to generate a client ID and client secret. In addition to that, you must have your application redirect (or callback) URL registered with the provider (this is where the login form would redirect to afterwards, for more information on OAuth2, see next section).

Place your client IDs, client secrets, and API keys in the WebApi_CommonInfo reusable part before you run the examples.

The next sections will covers generating client ID and client secret for your Google account, and placing them in the WebApi_CommonInfo reusable part.

Next: OAuth2 Authorization Framework