one-msg-sdk 2.0.1

Official Rust SDK for the 1msg WhatsApp Business API
# \WebhooksApi

All URIs are relative to *https://api.1msg.io*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_webhook**]WebhooksApi.md#get_webhook | **GET** /webhook | Get webhook URL
[**set_webhook**]WebhooksApi.md#set_webhook | **POST** /webhook | Set webhook URL



## get_webhook

> models::GetWebhook200Response get_webhook(token)
Get webhook URL

Returns the configured client webhook URL for this channel.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**token** | **String** | JWT token or API key for authorization | [required] |

### Return type

[**models::GetWebhook200Response**](getWebhook_200_response.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_webhook

> std::collections::HashMap<String, serde_json::Value> set_webhook(token, get_webhook200_response)
Set webhook URL

Configure the client webhook URL for inbound events.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**token** | **String** | JWT token or API key for authorization | [required] |
**get_webhook200_response** | Option<[**GetWebhook200Response**]GetWebhook200Response.md> |  |  |

### Return type

[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)

### Authorization

[tokenAuth](../README.md#tokenAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)