# README
Go API client for
The Twilio SendGrid Scopes API allows you to retrieve the scopes or permissions available to a user, see the user's attempts to access your SendGrid account, and, if necessary, deny an access request.
Overview
This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/sendgrid-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version:
- Build date: 2025-08-18T08:58:25.429430Z[Etc/UTC]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator For more information, please visit https://support.sendgrid.com/hc/en-us
Installation
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import "./"
Documentation for API Endpoints
All URIs are relative to https://api.sendgrid.com
Class | Method | HTTP request | Description |
---|---|---|---|
ApproveScopeRequest | ApproveScopeRequest | Patch /v3/scopes/requests/{RequestId}/approve | Approve access request |
DenyScopeRequest | DenyScopeRequest | Delete /v3/scopes/requests/{RequestId} | Deny access request |
ListScope | ListScope | Get /v3/scopes | Retrieve a list of scopes for which this user has access. |
ListScopeRequest | ListScopeRequest | Get /v3/scopes/requests | Retrieve access requests |
Documentation For Models
- ApproveScopeRequest200Response
- DenyScopeRequest404Response
- DenyScopeRequest404ResponseErrorsInner
- ErrorResponse
- ErrorResponseErrorsInner
- ListScope200Response
- ListScope401Response
- ListScope401ResponseErrorsInner
- ListScopeRequest200ResponseInner
Documentation For Authorization
BearerAuth
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)