Click the project drop-down and select the same project you used when you created.Go to the Google Maps Platform Quotas page in the Cloud Console.To ensure that your API key only accepts signed requests: We strongly recommend that you use both an API key and digital signature, api_target=""ĭigitally sign your request with an API keyĭepending on your usage, a digital signature - in addition to an API key - may be required to Gcloud alpha services api-keys update "projects/ PROJECT/keys/ KEY_ID" \ Gcloud services api-keys list -project=" PROJECT"Ĭlear existing restrictions on existing key. If the Maps Static API is not listed, you need to Select Maps Static API from Select APIs dropdown.Recommended you regularly check your usage, to make sure it matches your expectations. Should be formatted as "_file_url_//path/to/*". The "file://" part should be replaced with "_file_url_" before beingĪdded to the key restriction. Note: file:// referers need a special representation to be added to the Specify one or more referrer web sites.Referrers (web sites) from the list of Application To accept requests from the list of website that you supply, select HTTP.Under Key restrictions, set the following restrictions:.Select the API key that you want to set a restriction on.Go to the Google Maps Platform > Credentials page. We strongly recommend that you follow the instructions to set restrictionsįor your API keys. Restricting API keys adds security to your application by ensuring only authorized requests are HTTPS is required for requests that use an API key. In the following example, replace YOUR_API_KEY with You must include an API key with every Maps Static API request. (Remember to restrict the API key before using it in production.) The new API key is listed on the Credentials page under API Keys. The API key created dialog displays the newly created API key. On the Credentials page, click Create Credentials > API key. You must have at least one API key associated with your project.Ĭlick the project drop-down and select or create the project for which you wantĪnd select Google Maps Platform > Credentials. The digital signature allows our servers to verify that any site generating requests using yourĪPI key is authorized to do so. Is used to authenticate requests associated with your project for usage and billing purposes.ĭepending on your usage, a digital signature may also be required (see To use the Maps Static API you must have an API key. To learn more, see Set up in Cloud Console. Before you start using the Maps Static API, you need a project with a billing account and the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |