github.com/twilio/twilio-go@v1.20.1/rest/events/v1/docs/SubscriptionsSubscribedEventsApi.md (about) 1 # SubscriptionsSubscribedEventsApi 2 3 All URIs are relative to *https://events.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateSubscribedEvent**](SubscriptionsSubscribedEventsApi.md#CreateSubscribedEvent) | **Post** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents | 8 [**DeleteSubscribedEvent**](SubscriptionsSubscribedEventsApi.md#DeleteSubscribedEvent) | **Delete** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type} | 9 [**FetchSubscribedEvent**](SubscriptionsSubscribedEventsApi.md#FetchSubscribedEvent) | **Get** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type} | 10 [**ListSubscribedEvent**](SubscriptionsSubscribedEventsApi.md#ListSubscribedEvent) | **Get** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents | 11 [**UpdateSubscribedEvent**](SubscriptionsSubscribedEventsApi.md#UpdateSubscribedEvent) | **Post** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type} | 12 13 14 15 ## CreateSubscribedEvent 16 17 > EventsV1SubscribedEvent CreateSubscribedEvent(ctx, SubscriptionSidoptional) 18 19 20 21 Add an event type to a Subscription. 22 23 ### Path Parameters 24 25 26 Name | Type | Description 27 ------------- | ------------- | ------------- 28 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 29 **SubscriptionSid** | **string** | The unique SID identifier of the Subscription. 30 31 ### Other Parameters 32 33 Other parameters are passed through a pointer to a CreateSubscribedEventParams struct 34 35 36 Name | Type | Description 37 ------------- | ------------- | ------------- 38 **Type** | **string** | Type of event being subscribed to. 39 **SchemaVersion** | **int** | The schema version that the Subscription should use. 40 41 ### Return type 42 43 [**EventsV1SubscribedEvent**](EventsV1SubscribedEvent.md) 44 45 ### Authorization 46 47 [accountSid_authToken](../README.md#accountSid_authToken) 48 49 ### HTTP request headers 50 51 - **Content-Type**: application/x-www-form-urlencoded 52 - **Accept**: application/json 53 54 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 55 [[Back to Model list]](../README.md#documentation-for-models) 56 [[Back to README]](../README.md) 57 58 59 ## DeleteSubscribedEvent 60 61 > DeleteSubscribedEvent(ctx, SubscriptionSidType) 62 63 64 65 Remove an event type from a Subscription. 66 67 ### Path Parameters 68 69 70 Name | Type | Description 71 ------------- | ------------- | ------------- 72 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 73 **SubscriptionSid** | **string** | The unique SID identifier of the Subscription. 74 **Type** | **string** | Type of event being subscribed to. 75 76 ### Other Parameters 77 78 Other parameters are passed through a pointer to a DeleteSubscribedEventParams struct 79 80 81 Name | Type | Description 82 ------------- | ------------- | ------------- 83 84 ### Return type 85 86 (empty response body) 87 88 ### Authorization 89 90 [accountSid_authToken](../README.md#accountSid_authToken) 91 92 ### HTTP request headers 93 94 - **Content-Type**: Not defined 95 - **Accept**: Not defined 96 97 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 98 [[Back to Model list]](../README.md#documentation-for-models) 99 [[Back to README]](../README.md) 100 101 102 ## FetchSubscribedEvent 103 104 > EventsV1SubscribedEvent FetchSubscribedEvent(ctx, SubscriptionSidType) 105 106 107 108 Read an Event for a Subscription. 109 110 ### Path Parameters 111 112 113 Name | Type | Description 114 ------------- | ------------- | ------------- 115 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 116 **SubscriptionSid** | **string** | The unique SID identifier of the Subscription. 117 **Type** | **string** | Type of event being subscribed to. 118 119 ### Other Parameters 120 121 Other parameters are passed through a pointer to a FetchSubscribedEventParams struct 122 123 124 Name | Type | Description 125 ------------- | ------------- | ------------- 126 127 ### Return type 128 129 [**EventsV1SubscribedEvent**](EventsV1SubscribedEvent.md) 130 131 ### Authorization 132 133 [accountSid_authToken](../README.md#accountSid_authToken) 134 135 ### HTTP request headers 136 137 - **Content-Type**: Not defined 138 - **Accept**: application/json 139 140 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 141 [[Back to Model list]](../README.md#documentation-for-models) 142 [[Back to README]](../README.md) 143 144 145 ## ListSubscribedEvent 146 147 > []EventsV1SubscribedEvent ListSubscribedEvent(ctx, SubscriptionSidoptional) 148 149 150 151 Retrieve a list of all Subscribed Event types for a Subscription. 152 153 ### Path Parameters 154 155 156 Name | Type | Description 157 ------------- | ------------- | ------------- 158 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 159 **SubscriptionSid** | **string** | The unique SID identifier of the Subscription. 160 161 ### Other Parameters 162 163 Other parameters are passed through a pointer to a ListSubscribedEventParams struct 164 165 166 Name | Type | Description 167 ------------- | ------------- | ------------- 168 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 169 **Limit** | **int** | Max number of records to return. 170 171 ### Return type 172 173 [**[]EventsV1SubscribedEvent**](EventsV1SubscribedEvent.md) 174 175 ### Authorization 176 177 [accountSid_authToken](../README.md#accountSid_authToken) 178 179 ### HTTP request headers 180 181 - **Content-Type**: Not defined 182 - **Accept**: application/json 183 184 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 185 [[Back to Model list]](../README.md#documentation-for-models) 186 [[Back to README]](../README.md) 187 188 189 ## UpdateSubscribedEvent 190 191 > EventsV1SubscribedEvent UpdateSubscribedEvent(ctx, SubscriptionSidTypeoptional) 192 193 194 195 Update an Event for a Subscription. 196 197 ### Path Parameters 198 199 200 Name | Type | Description 201 ------------- | ------------- | ------------- 202 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 203 **SubscriptionSid** | **string** | The unique SID identifier of the Subscription. 204 **Type** | **string** | Type of event being subscribed to. 205 206 ### Other Parameters 207 208 Other parameters are passed through a pointer to a UpdateSubscribedEventParams struct 209 210 211 Name | Type | Description 212 ------------- | ------------- | ------------- 213 **SchemaVersion** | **int** | The schema version that the Subscription should use. 214 215 ### Return type 216 217 [**EventsV1SubscribedEvent**](EventsV1SubscribedEvent.md) 218 219 ### Authorization 220 221 [accountSid_authToken](../README.md#accountSid_authToken) 222 223 ### HTTP request headers 224 225 - **Content-Type**: application/x-www-form-urlencoded 226 - **Accept**: application/json 227 228 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 229 [[Back to Model list]](../README.md#documentation-for-models) 230 [[Back to README]](../README.md) 231