# ps.module.TelcoWebhookApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionOrderBwPost**](TelcoWebhookApi.md#apiVersionOrderBwPost) | **POST** /api/{version}/order/bw | This webhook is triggered when there is incoming text message event.
[**apiVersionSmsBwPost**](TelcoWebhookApi.md#apiVersionSmsBwPost) | **POST** /api/{version}/sms/bw | This webhook is triggered when there is incoming text message event.

<a name="apiVersionOrderBwPost"></a>
# **apiVersionOrderBwPost**
> apiVersionOrderBwPost(version)

This webhook is triggered when there is incoming text message event.

### Example
```javascript
import ps.module from 'phonespeakv2_api';

let apiInstance = new ps.module.TelcoWebhookApi();
let version = "version_example"; // String | 

apiInstance.apiVersionOrderBwPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionSmsBwPost"></a>
# **apiVersionSmsBwPost**
> apiVersionSmsBwPost(version)

This webhook is triggered when there is incoming text message event.

### Example
```javascript
import ps.module from 'phonespeakv2_api';

let apiInstance = new ps.module.TelcoWebhookApi();
let version = "version_example"; // String | 

apiInstance.apiVersionSmsBwPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**[PhoneSpeakEntitiesTelcoWebhooksMsgWebhookBWMsg]**](PhoneSpeakEntitiesTelcoWebhooksMsgWebhookBWMsg.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

