Where can I get Google developer key

后端 未结 16 1803
眼角桃花
眼角桃花 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: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.

提交回复
热议问题