This repository is meant to provide comprehensive samples on googleapis. It mostly focuses on the workspace apis.
The instructions already assume you already familiar with the GCP console. Also the authentication that is oath
- Activate the googleapi that you want to use.( e.g the gmail api or the email api)
- Create an oath consent screen
- Create an oath 2.0 client
- Copy the oath 2.0 client credentials required which include the client id and client secret.
- Populate the .env file with appropriate data as shown in the .env example
- Define the scopes of what your app wants to use.
- Request for the authorisation code.
- Exchange the code for the refresh token.
- Store the refresh token after running start auth script.
- Use the refresh token to send requests.
Want to collaborate? Reach out on jimmykaguru@gmail.com