Where can I get Google developer key

后端 未结 16 1768
眼角桃花
眼角桃花 2020-12-02 07:46

I am working on Google API like chat, contacts and so on... I am stuck on developer_key as mentioned in gdata doc.

You can get this at https://code.goog

相关标签:
16条回答
  • 2020-12-02 08:15

    Please use Google API console
    Create a new project
    For the created project goto API access
    There you will find your Client ID and Secret. And the API key in the last is your developer key.

    0 讨论(0)
  • 2020-12-02 08:15

    tl;dr

    Developer Key = Api Key (any of yours)

    find it in Google Console -> Google API -> Credentials

    0 讨论(0)
  • 2020-12-02 08:16

    In the old console layout :

    • Select your project
    • Select menu item "API access"
    • Go to the section below "Create another client ID", called "Simple API Access"
    • Choose one of the following options, depending on what kind of app you're creating (server side languages should use the first option - JS should use the second) :
      • Key for server apps (with IP locking)
      • Key for browser apps (with referers)

    In the new cloud console layout :

    • Select your project
    • Choose menu item "APIs & auth"
    • Choose menu item "Registered app"
    • Register an app of type "web application"
    • Choose one of the following options, depending on what kind of app you're creating (server side languages should use the first option - JS should use the second) :
      • Key for server apps (with IP locking)
      • Key for browser apps (with referers)

    In case of both procedures, you find your client ID and client secret at the same page. If you're using a different client ID and client secret, replace it with the ones you find here.

    During my first experiments today, I've succesfully used the "Key for server apps" as a developer key for connecting with the "contacts", "userinfo" and "analytics" API. I did this using the PHP client.

    Wading through the Google API docs certainly is a pain in the @$$... I hope this info will be useful to anyone.

    0 讨论(0)
  • 2020-12-02 08:16

    If you are only calling APIs that do not require user data, such as the Google Custom Search API, then API keys might be simpler to use than OAuth 2.0 access tokens. However, if your application already uses an OAuth 2.0 access token, then there is no need to generate an API key as well. Google ignores passed API keys if a passed OAuth 2.0 access token is already associated with the corresponding project.

    Note: You must use either an OAuth 2.0 access token or an API key for all requests to Google APIs represented in the Google Developers Console. Not all APIs require authorized calls. To learn whether authorization is required for a specific call, see your API documentation.

    Reference: https://developers.google.com/console/help/new/?hl=en_US#credentials-access-security-and-identity

    0 讨论(0)
  • 2020-12-02 08:20

    Update Nov 2015:

    Sometime in late 2015, the Google Developers Console interface was overhauled again. For the new interface:

    1. Select your project from the toolbar. screenshot

    2. Open the "Gallery" using hamburger menu icon on the left side of the toolbar and select 'API Manager'.

    3. Click 'Credentials' in the left-hand navigation.

    Alternatively, you can click 'Switch to old console' under the the three-dot menu (right side of the toolbar), then follow the instructions below.

    For the NEW (edit: OLD) Google Developers Console:

    You get your 'Developer key' (a.k.a. API key) on the same screen where you get your client ID/secret. (This is the 'Credentials' screen, which can be found under 'APIs & auth' in the left nav.)

    Below your client ID keys, there is a section titled 'Public API access'. If there are no keys in this this section, click 'Create new Key'. Your developer key is the 'API key' specified here.

    0 讨论(0)
  • 2020-12-02 08:23

    It's the API key as listed under 'API Access', the 'Simple API Access' box.

    0 讨论(0)
提交回复
热议问题