Getting an API key for a Google Cloud API

You need to create a project in the Google cloud, enable the API, and then get an API key.

  1. Rather than give them a credit card number, you can use the $100 student innovator credit that Jason has arranged for our class. Go here to request the $100 credit. Give them the email with which you want to work with on the Google Cloud Platform. So if you have worked on it before, give them the same email.
  2. In a day or two, you should recieve an email with a link to activate the credit. Follow the link. It should create a new billing account, associated with the email address you gave them.
  3. Go here to create a Google cloud project. You should be on a page with the heading "Google cloud platform". There, choose "Create project", and create a project (give it whatever name you like, something to do with flashcards).
  4. Select your new project. This should bring up a nav bar on the left; choose "Billing" (if there is no choice for "Billing" try the hamburger menu to get the right nav bar). You should be able to link your new billing account, with the $100 credit, to your new project.
  5. Again, use the hamburger menu to get the nav bar, and select the the API manager, and "Dashboard" from the sub-menu. Click on the API box. Click "Enable API" at the top of the API screen. On the next screen, search for "Translation" and get the Cloud Translation API, and select it. Click "Enable".
  6. Once enabled, you should get a "Create Credentials" button. (Or, if you are somewhere else, get back to the Dashboard project page, select the API manager, and Choose "Credentials".) Select "API Key". You should get an API key in a pop-up. Cut and paste it somewhere handy, you'll need to put it into your server code.