I tried to call the export_events endpoint, and an error occurs.
Steps to reproduce?
import onesignal
from onesignal.api import default_api
from pprint import pprint
app_id = "" # The ID of the app that the notification belongs to.
notification_id = "" # The ID of the notification to export events from.
app_key = ""
configuration = onesignal.Configuration(
app_key = app_key,
)
with onesignal.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
# example passing only required values which don't have defaults set
try:
# Export CSV of Events
api_response = api_instance.export_events(notification_id, app_id)
pprint(api_response)
except onesignal.ApiException as e:
print("Exception when calling DefaultApi->export_events: %s\n" % e)
What happened?
I tried to call the
export_events
endpoint, and an error occurs.Steps to reproduce?
Then below error happen
What did you expect to happen?
Success to call the endpoint
Relevant log output
No response
Code of Conduct