Google APIs are consumed from Google Cloud projects. This guide walks through the process of creating a Google Cloud Project, enabling the OR API in such a project, and obtaining an API key to call the API endpoints.
Create a Google Cloud project
Using a Google hosted account, create a project in the Google Cloud console. If the solver you intend to use is under a trusted tester program, follow this guide first.
Enable the API
Navigate to the APIs library.
Click "Enable".
Get an API key
Navigate to the credentials menu.
Click "+ CREATE CREDENTIALS"
Select API key
Save the API key in a
credentials.json
file with the following body
{ "key": "your_api_key" }