Home Forums How to create google API key in google developer console

Topic Resolution: Resolved

This topic contains 0 replies, has 1 voice, and was last updated by JWSThemes JWSThemes 1 year, 1 month ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #17259

    Setting up API keys

    If your client application does not use OAuth 2.0, then it must include an API key when it calls an API that’s enabled within a Google Cloud Platform project. The application passes this key into all API requests as a key=API_key parameter.To create your application’s API key:

    1. Go to the API Console.
    2. From the projects list, select a project or create a new one.
    3. If the APIs & services page isn’t already open, open the left side menu and select APIs & services.
    4. On the left, choose Credentials.
    5. Click Create credentials and then select API key.

    Note: In addition to reading the instructions on this page, be sure to read Best practices for securely using API keys.


    How to change API key in theme:

    Solution 01: Add API key into the shortcode theme.

     

    Solution 02: Add API key into default code theme.

    wp-content/themes/theme_name/framework/shortcodes/map_v3/map_v3.php change this line ‘api’ => ‘AIzaSyCyuW48kPjku1h6fle8WYwO1pKI3Hdp4wk’,  to your API key.

    Current API key:  AIzaSyCyuW48kPjku1h6fle8WYwO1pKI3Hdp4wk

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.