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

     1  # SmsCommandsApi
     2  
     3  All URIs are relative to *https://supersim.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateSmsCommand**](SmsCommandsApi.md#CreateSmsCommand) | **Post** /v1/SmsCommands | 
     8  [**FetchSmsCommand**](SmsCommandsApi.md#FetchSmsCommand) | **Get** /v1/SmsCommands/{Sid} | 
     9  [**ListSmsCommand**](SmsCommandsApi.md#ListSmsCommand) | **Get** /v1/SmsCommands | 
    10  
    11  
    12  
    13  ## CreateSmsCommand
    14  
    15  > SupersimV1SmsCommand CreateSmsCommand(ctx, optional)
    16  
    17  
    18  
    19  Send SMS Command to a Sim.
    20  
    21  ### Path Parameters
    22  
    23  This endpoint does not need any path parameter.
    24  
    25  ### Other Parameters
    26  
    27  Other parameters are passed through a pointer to a CreateSmsCommandParams struct
    28  
    29  
    30  Name | Type | Description
    31  ------------- | ------------- | -------------
    32  **Sim** | **string** | The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
    33  **Payload** | **string** | The message body of the SMS Command.
    34  **CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
    35  **CallbackUrl** | **string** | The URL we should call using the `callback_method` after we have sent the command.
    36  
    37  ### Return type
    38  
    39  [**SupersimV1SmsCommand**](SupersimV1SmsCommand.md)
    40  
    41  ### Authorization
    42  
    43  [accountSid_authToken](../README.md#accountSid_authToken)
    44  
    45  ### HTTP request headers
    46  
    47  - **Content-Type**: application/x-www-form-urlencoded
    48  - **Accept**: application/json
    49  
    50  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    51  [[Back to Model list]](../README.md#documentation-for-models)
    52  [[Back to README]](../README.md)
    53  
    54  
    55  ## FetchSmsCommand
    56  
    57  > SupersimV1SmsCommand FetchSmsCommand(ctx, Sid)
    58  
    59  
    60  
    61  Fetch SMS Command instance from your account.
    62  
    63  ### Path Parameters
    64  
    65  
    66  Name | Type | Description
    67  ------------- | ------------- | -------------
    68  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    69  **Sid** | **string** | The SID of the SMS Command resource to fetch.
    70  
    71  ### Other Parameters
    72  
    73  Other parameters are passed through a pointer to a FetchSmsCommandParams struct
    74  
    75  
    76  Name | Type | Description
    77  ------------- | ------------- | -------------
    78  
    79  ### Return type
    80  
    81  [**SupersimV1SmsCommand**](SupersimV1SmsCommand.md)
    82  
    83  ### Authorization
    84  
    85  [accountSid_authToken](../README.md#accountSid_authToken)
    86  
    87  ### HTTP request headers
    88  
    89  - **Content-Type**: Not defined
    90  - **Accept**: application/json
    91  
    92  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    93  [[Back to Model list]](../README.md#documentation-for-models)
    94  [[Back to README]](../README.md)
    95  
    96  
    97  ## ListSmsCommand
    98  
    99  > []SupersimV1SmsCommand ListSmsCommand(ctx, optional)
   100  
   101  
   102  
   103  Retrieve a list of SMS Commands from your account.
   104  
   105  ### Path Parameters
   106  
   107  This endpoint does not need any path parameter.
   108  
   109  ### Other Parameters
   110  
   111  Other parameters are passed through a pointer to a ListSmsCommandParams struct
   112  
   113  
   114  Name | Type | Description
   115  ------------- | ------------- | -------------
   116  **Sim** | **string** | The SID or unique name of the Sim resource that SMS Command was sent to or from.
   117  **Status** | **string** | The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
   118  **Direction** | **string** | The direction of the SMS Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
   119  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
   120  **Limit** | **int** | Max number of records to return.
   121  
   122  ### Return type
   123  
   124  [**[]SupersimV1SmsCommand**](SupersimV1SmsCommand.md)
   125  
   126  ### Authorization
   127  
   128  [accountSid_authToken](../README.md#accountSid_authToken)
   129  
   130  ### HTTP request headers
   131  
   132  - **Content-Type**: Not defined
   133  - **Accept**: application/json
   134  
   135  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   136  [[Back to Model list]](../README.md#documentation-for-models)
   137  [[Back to README]](../README.md)
   138