API Call Examples
Example commands (*) that you can use to validate proxy behavior against the Google Workspace APIs. Follow the steps and change the values to match your configuration when needed.
You can use the -i
flag to impersonate the desired user identity option when running the testing tool. Example:
For AWS, change the role to assume with one with sufficient permissions to call the proxy (-r
flag). Example:
If any call appears to fail, repeat it using the -v
flag.
(*) All commands assume that you are at the root path of the Psoxy project.
Calendar
Settings
Events
Event
Get the calendar event ID (accessor path in response
.items[0].id
):
Get event information (replace
calendar_event_id
with the corresponding value):
Directory
Domains
Groups
Group
Get the group ID (accessor path in response
.groups[0].id
):
Get group information (replace
google_group_id
with the corresponding value):
Group Members
Users
Get the user ID (accessor path in response
.users[0].id
):
Get user information (replace [google_user_id] with the corresponding value):
Thumbnail (expect have its contents redacted; replace [google_user_id] with the corresponding value):
Roles
Drive
Files
API v2
API v3 (*)
(*) Notice that only the "version" part of the URL changes, and all subsequent calls should work for v2
and also v3
.
File
Get the file ID (accessor path in response
.files[0].id
:
Get file details (replace [drive_file_id] with the corresponding value):
File Revisions
YMMV, as file at index 0
must actually be a type that supports revisions for this to return anything. You can play with different file IDs until you find something that does.
Permissions
Comments
YMMV, as file at index 0
must actually be a type that has comments for this to return anything. You can play with different file IDs until you find something that does.
NOTE probably blocked by OAuth metadata only scope!!
Comment
NOTE probably blocked by OAuth metadata only scope!!
Get file comment ID (accessor path in response
.items[0].id
):
Get file comment details (replace
file_comment_id
with the corresponding value):
Replies
NOTE probably blocked by OAuth metadata only scope!!
YMMV, as above, play with the file comment ID value until you find a file with comments, and a comment that has replies.
GMail
Messages
Message
Google Chat
NOTE: limited to 10 results, to keep it readable.
Google Meet
NOTE: limited to 10 results, to keep it readable.
Last updated