github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/docs/AccountsTokensApi.md (about)

     1  # AccountsTokensApi
     2  
     3  All URIs are relative to *https://api.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateToken**](AccountsTokensApi.md#CreateToken) | **Post** /2010-04-01/Accounts/{AccountSid}/Tokens.json | 
     8  
     9  
    10  
    11  ## CreateToken
    12  
    13  > ApiV2010Token CreateToken(ctx, optional)
    14  
    15  
    16  
    17  Create a new token for ICE servers
    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  **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.
    31  **Ttl** | **int** | The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).
    32  
    33  ### Return type
    34  
    35  [**ApiV2010Token**](ApiV2010Token.md)
    36  
    37  ### Authorization
    38  
    39  [accountSid_authToken](../README.md#accountSid_authToken)
    40  
    41  ### HTTP request headers
    42  
    43  - **Content-Type**: application/x-www-form-urlencoded
    44  - **Accept**: application/json
    45  
    46  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    47  [[Back to Model list]](../README.md#documentation-for-models)
    48  [[Back to README]](../README.md)
    49