API Instructions - legoguy1000/FRC-Portal GitHub Wiki

Authorizations

Google API Key

  1. Go to the Google Cloud Console Credentials page.
  2. Select Create Credential and API Key
  3. Click Edit next to the API key
  4. Under Application Restrictions, select IP Addresses and input the IP Addresses of your web server. For shared hosting, there may be more than 1 IP and there may be a mix of IPv4 and IPv6.
  5. Under API Restrictions, select the Google Calendar API
  6. Input into Google API Key field under Other Settings in portal

Google Service Account

  1. Go to the Google Cloud Console Credentials page.
  2. Click Manage service accounts
  3. Click Create Service Account
  4. Create a Name, ID, and Description
  5. DO NOT A A ROLE, click continue
  6. Add admins if you need to, not required.
  7. Click Create Key
  8. Select JSON and click Create
  9. Download JSON file and save to a secure location
  10. Upload to portal via upload button under Other Settings

Slack API Key

  1. Go to the Slack API Portal
  2. Click Create New App
  3. Create a name and select your workspace.
  4. Select OAuth & Permissions and scroll down to Scopes.
  5. Add the following Permission Scopes
    • chat:write:bot
    • commands
    • users:read
    • users:read.email
    • users.profile:read
  6. Click Save Changes
  7. If you can, add the IP address(es) of your server under Restrict API Token Usage
  8. Scroll back to the top and you should be able to click Install App to Workspace
  9. Copy the OAuth Access Token to the Slack API Input in your site

APIs

Google Calendar

  1. Go to Google Calendar API page
  2. Click Enable API

Google Drive

  1. Go to Google Drive API page
  2. Click Enable API

Google Sheets

  1. Go to Google Sheets API page
  2. Click Enable API