API Instructions - legoguy1000/FRC-Portal GitHub Wiki
Authorizations
Google API Key
Go to the Google Cloud Console Credentials page.
Select Create Credential and API Key
Click Edit next to the API key
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.
Under API Restrictions , select the Google Calendar API
Input into Google API Key field under Other Settings in portal
Google Service Account
Go to the Google Cloud Console Credentials page.
Click Manage service accounts
Click Create Service Account
Create a Name, ID, and Description
DO NOT A A ROLE, click continue
Add admins if you need to, not required.
Click Create Key
Select JSON and click Create
Download JSON file and save to a secure location
Upload to portal via upload button under Other Settings
Slack API Key
Go to the Slack API Portal
Click Create New App
Create a name and select your workspace.
Select OAuth & Permissions and scroll down to Scopes.
Add the following Permission Scopes
chat:write:bot
commands
users:read
users:read.email
users.profile:read
Click Save Changes
If you can, add the IP address(es) of your server under Restrict API Token Usage
Scroll back to the top and you should be able to click Install App to Workspace
Copy the OAuth Access Token to the Slack API Input in your site
APIs
Google Calendar
Go to Google Calendar API page
Click Enable API
Google Drive
Go to Google Drive API page
Click Enable API
Google Sheets
Go to Google Sheets API page
Click Enable API
🗂️ Page Index for this GitHub Wiki