Command line interface integrated with Google Cloud Platform.
Command line interface implemented in Golang integrated with the calendar API provided by Google Cloud Platform, which allows you to list events of the week and events of the day.
./
Folder | Description |
---|---|
app |
Application entrypoint. |
internal/
Folder | Description |
---|---|
client |
Encapsulation of the calendar API configuration logic through the abstraction provided by the Go library. |
cmd |
Commands implemented to run in the terminal |
You need to obtain a JSON file with the API credentials and insert it into a folder in the project root, the folder name must be key
and the file name must be credentials.json
.
- In the terminal, at the root of the project, run the following command:
go run main.go <command>
. - Add a calendar with the command
go run main.go config -c <calendar id>
. - To get the week's events, type the command
go run main.go events -c <calendar name> -i <interval>
where-c
represents the name of the calendar referring to the calendar Id added and-i
represents the interval that will be fetched, the possible values areweek
andtoday
.
The following libraries were used: