Skip to main content

MessageExportsService

A list of all methods in the MessageExportsService service. Click on the method name to view detailed information about that method.

MethodsDescription
create_message_store_reportCreates a task to collect all account messages within the specified time interval. Maximum number of simultaneous tasks per account is 2.
read_message_store_report_taskReturns the current status of a task on report creation.
read_message_store_report_archiveReturns the created report with message data not including attachments.

create_message_store_report

Creates a task to collect all account messages within the specified time interval. Maximum number of simultaneous tasks per account is 2.

  • HTTP Method: POST
  • Endpoint: /restapi/v1.0/account/{accountId}/message-store-report

Parameters

NameTypeRequiredDescription
request_bodyCreateMessageStoreReportRequestThe request body.
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)

Return Type

MessageStoreReport

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import CreateMessageStoreReportRequest

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = CreateMessageStoreReportRequest(
date_to="dateTo",
date_from="dateFrom",
message_types=[
"Fax"
]
)

result = sdk.message_exports.create_message_store_report(
request_body=request_body,
account_id="~"
)

print(result)

read_message_store_report_task

Returns the current status of a task on report creation.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/account/{accountId}/message-store-report/{taskId}

Parameters

NameTypeRequiredDescription
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
task_idstrInternal identifier of a task

Return Type

MessageStoreReport

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.message_exports.read_message_store_report_task(
account_id="~",
task_id="taskId"
)

print(result)

read_message_store_report_archive

Returns the created report with message data not including attachments.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive

Parameters

NameTypeRequiredDescription
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
task_idstrInternal identifier of a task

Return Type

MessageStoreReportArchive

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.message_exports.read_message_store_report_archive(
account_id="~",
task_id="taskId"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →