1.7 KiB
1.7 KiB
board_mate.mail.DefaultApi
All URIs are relative to https://boardmate_api
| Method | HTTP request | Description |
|---|---|---|
| send | POST /mail/send | POST mail/send |
send
str send(body)
POST mail/send
Example
import time
import os
import board_mate.mail
from board_mate.mail.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://boardmate_api
# See configuration.py for a list of all supported configuration parameters.
configuration = board_mate.mail.Configuration(
host = "https://boardmate_api"
)
# Enter a context with an instance of the API client
with board_mate.mail.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = board_mate.mail.DefaultApi(api_client)
body = 'body_example' # str |
try:
# POST mail/send
api_response = api_instance.send(body)
print("The response of DefaultApi->send:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->send: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | str |
Return type
str
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: /
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]