Skip to main content

Notifications API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
send_local_notificationPOST /notifications/local/sendSend notification

send_local_notification

send_local_notification(notification=notification)

Send notification

Retrieves a snapshot of all available models.

Example

import pieces_os_client
from pieces_os_client.models.notification import Notification
from pieces_os_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:1000
# See configuration.py for a list of all supported configuration parameters.
configuration = pieces_os_client.Configuration(
host="http://localhost:1000"
)


# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pieces_os_client.NotificationsApi(api_client)
notification = pieces_os_client.Notification() # Notification | (optional)

try:
# Send notification
api_instance.send_local_notification(notification=notification)
except Exception as e:
print("Exception when calling NotificationsApi->send_local_notification: %s\n" % e)

Parameters

NameTypeDescriptionNotes
notificationNotification[optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-