PagerMessagesService
A list of all methods in the PagerMessagesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
create_internal_text_message | Creates and sends an internal text message (company pager message). |
create_internal_text_message
Creates and sends an internal text message (company pager message).
- HTTP Method:
POST
- Endpoint:
/restapi/v1.0/account/{accountId}/extension/{extensionId}/company-pager
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | CreateInternalTextMessageRequest | ✅ | The request body. |
account_id | str | ✅ | Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used) |
extension_id | str | ✅ | Internal identifier of the RingCentral extension/user (can be set to "~" to indicate that the extension associated with current authorization session should be used) |
Return Type
GetInternalTextMessageInfoResponse
Example Usage Code Snippet
from ring_central import RingCentral, Environment
from ring_central.models import CreateInternalTextMessageRequest
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
request_body = CreateInternalTextMessageRequest(
from_={
"extension_id": "123456789",
"extension_number": "105"
},
reply_on=3,
text="hello world",
to=[
{
"extension_id": "123456789",
"extension_number": "105"
}
]
)
result = sdk.pager_messages.create_internal_text_message(
request_body=request_body,
account_id="~",
extension_id="~"
)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs