github.com/twilio/twilio-go@v1.20.1/rest/oauth/v1/docs/TokenApi.md (about)

     1  # TokenApi
     2  
     3  All URIs are relative to *https://oauth.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateToken**](TokenApi.md#CreateToken) | **Post** /v1/token | 
     8  
     9  
    10  
    11  ## CreateToken
    12  
    13  > OauthV1Token CreateToken(ctx, optional)
    14  
    15  
    16  
    17  Issues a new Access token (optionally identity_token & refresh_token) in exchange of Oauth grant
    18  
    19  ### Path Parameters
    20  
    21  This endpoint does not need any path parameter.
    22  
    23  ### Other Parameters
    24  
    25  Other parameters are passed through a pointer to a CreateTokenParams struct
    26  
    27  
    28  Name | Type | Description
    29  ------------- | ------------- | -------------
    30  **GrantType** | **string** | Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
    31  **ClientId** | **string** | A 34 character string that uniquely identifies this OAuth App.
    32  **ClientSecret** | **string** | The credential for confidential OAuth App.
    33  **Code** | **string** | JWT token related to the authorization code grant type.
    34  **RedirectUri** | **string** | The redirect uri
    35  **Audience** | **string** | The targeted audience uri
    36  **RefreshToken** | **string** | JWT token related to refresh access token.
    37  **Scope** | **string** | The scope of token
    38  
    39  ### Return type
    40  
    41  [**OauthV1Token**](OauthV1Token.md)
    42  
    43  ### Authorization
    44  
    45  No authorization required
    46  
    47  ### HTTP request headers
    48  
    49  - **Content-Type**: application/x-www-form-urlencoded
    50  - **Accept**: application/json
    51  
    52  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    53  [[Back to Model list]](../README.md#documentation-for-models)
    54  [[Back to README]](../README.md)
    55