FINBOURNE Notifications API
Project description
lusid-notifications-sdk
FINBOURNE Technology
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.905
- Package version: 2.0.8
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.finbourne.com
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/finbourne/notifications-sdk-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/finbourne/notifications-sdk-python.git
)
Then import the package:
import lusid_notifications
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import lusid_notifications
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import lusid_notifications
from lusid_notifications.rest import ApiException
from pprint import pprint
from lusid_notifications import (
ApiClientFactory,
ApplicationMetadataApi,
EnvironmentVariablesConfigurationLoader,
SecretsFileConfigurationLoader,
ArgsConfigurationLoader
)
# Use the lusid_notifications ApiClientFactory to build Api instances with a configured api client
# By default this will read config from environment variables
# Then from a secrets.json file found in the current working directory
api_client_factory = ApiClientFactory()
# The ApiClientFactory can be passed an iterable of configuration loaders to read configuration from
api_url = "https://fbn-prd.lusid.com/notification"
# Path to a secrets.json file containing authentication credentials
# See https://support.lusid.com/knowledgebase/article/KA-01667/en-us
# for a detailed guide to setting up the SDK make authenticated calls to LUSID APIs
secrets_path = os.getenv("FBN_SECRETS_PATH")
app_name="LusidJupyterNotebook"
config_loaders = [
EnvironmentVariablesConfigurationLoader(),
SecretsFileConfigurationLoader(api_secrets_file=secrets_path),
ArgsConfigurationLoader(api_url=api_url, app_name=app_name)
]
api_client_factory = ApiClientFactory(config_loaders=config_loaders)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use
async with api_client_factory:
# Create an instance of the API class
api_instance = lusid_notifications.ApplicationMetadataApi(api_client)
try:
# [EARLY ACCESS] ListAccessControlledResources: Get resources available for access control
api_response = await api_instance.list_access_controlled_resources()
print("The response of ApplicationMetadataApi->list_access_controlled_resources:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://fbn-prd.lusid.com/notification
Class | Method | HTTP request | Description |
---|---|---|---|
ApplicationMetadataApi | list_access_controlled_resources | GET /api/metadata/access/resources | [EARLY ACCESS] ListAccessControlledResources: Get resources available for access control |
DeliveriesApi | list_deliveries | GET /api/deliveries | [EXPERIMENTAL] ListDeliveries: List Deliveries |
EventTypesApi | get_event_type | GET /api/eventtypes/{eventType} | [EXPERIMENTAL] GetEventType: Gets the specified event type schema. |
EventTypesApi | list_event_types | GET /api/eventtypes | [EXPERIMENTAL] ListEventTypes: Lists all of the available event types. |
ManualEventApi | trigger_manual_event | POST /api/manualevent | [EXPERIMENTAL] TriggerManualEvent: Trigger a manual event. |
NotificationsApi | create_notification | POST /api/subscriptions/{scope}/{code}/notifications | [EXPERIMENTAL] CreateNotification: Add a Notification to a Subscription. |
NotificationsApi | delete_notification | DELETE /api/subscriptions/{scope}/{code}/notifications/{id} | [EXPERIMENTAL] DeleteNotification: Delete a notification for a given subscription. |
NotificationsApi | get_notification | GET /api/subscriptions/{scope}/{code}/notifications/{id} | [EXPERIMENTAL] GetNotification: Get a notification on a subscription. |
NotificationsApi | list_notifications | GET /api/subscriptions/{scope}/{code}/notifications | [EXPERIMENTAL] ListNotifications: List all notifications on a subscription. |
NotificationsApi | update_notification | PUT /api/subscriptions/{scope}/{code}/notifications/{id} | [EXPERIMENTAL] UpdateNotification: Update a Notification for a Subscription |
SubscriptionsApi | create_subscription | POST /api/subscriptions | [EXPERIMENTAL] CreateSubscription: Create a new subscription. |
SubscriptionsApi | delete_subscription | DELETE /api/subscriptions/{scope}/{code} | [EXPERIMENTAL] DeleteSubscription: Delete a subscription. |
SubscriptionsApi | get_subscription | GET /api/subscriptions/{scope}/{code} | [EXPERIMENTAL] GetSubscription: Get a subscription. |
SubscriptionsApi | list_subscriptions | GET /api/subscriptions | [EXPERIMENTAL] ListSubscriptions: List subscriptions. |
SubscriptionsApi | update_subscription | PUT /api/subscriptions/{scope}/{code} | [EXPERIMENTAL] UpdateSubscription: Update an existing subscription. |
Documentation For Models
- AccessControlledAction
- AccessControlledResource
- ActionId
- AmazonSqsNotificationType
- AmazonSqsNotificationTypeResponse
- Attempt
- AttemptStatus
- CreateNotificationRequest
- CreateSubscription
- Delivery
- EmailNotificationType
- EmailNotificationTypeResponse
- EventFieldDefinition
- EventTypeSchema
- IdSelectorDefinition
- IdentifierPartSchema
- Link
- LusidProblemDetails
- LusidValidationProblemDetails
- ManualEvent
- ManualEventBody
- ManualEventHeader
- ManualEventRequest
- MatchingPattern
- Notification
- NotificationStatus
- NotificationType
- NotificationTypeResponse
- ResourceId
- ResourceListOfAccessControlledResource
- ResourceListOfDelivery
- ResourceListOfEventTypeSchema
- ResourceListOfNotification
- ResourceListOfSubscription
- SmsNotificationType
- SmsNotificationTypeResponse
- Subscription
- UpdateNotificationRequest
- UpdateSubscription
- WebhookNotificationType
- WebhookNotificationTypeResponse
Documentation For Authorization
Authentication schemes defined for the API:
oauth2
- Type: OAuth
- Flow: implicit
- Authorization URL: https://lusid.okta.com/oauth2/default/v1/authorize
- Scopes: N/A
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lusid_notifications_sdk-2.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd61c7be1806abd662b8be5f2385ca9d92951e8c247904703625b20a1d7a9d9 |
|
MD5 | 22efaac09aeac2dd33390c4fa4fa47ad |
|
BLAKE2b-256 | 78d3fc52fa0f029e39caf624927f9d1a47f8cbcd7c9bf96cd1e8dffa7c921e6c |
Hashes for lusid_notifications_sdk-2.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a704c917f484c2365e92b1be70be58d1132e398402190529bd70468488d9944c |
|
MD5 | 24e91c634552bdb5185ab4902c827c46 |
|
BLAKE2b-256 | 3c17ff4ca186164f9b12864a730f93634d5f46f092ee8ab0c4b6d241a9f813cf |