Skip to main content

RingOutService

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

MethodsDescription
create_ring_out_callMakes a 2-legged RingOut call.
read_ring_out_call_statusReturns a status of a 2-legged RingOut call.
delete_ring_out_callCancels a 2-legged RingOut call.

create_ring_out_call

Makes a 2-legged RingOut call.

  • HTTP Method: POST
  • Endpoint: /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out

Parameters

NameTypeRequiredDescription
request_bodyMakeRingOutRequestThe 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)
extension_idstrInternal 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

GetRingOutStatusResponse

Example Usage Code Snippet

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

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

request_body = MakeRingOutRequest(
from_={
"phone_number": "phoneNumber",
"forwarding_number_id": "forwardingNumberId"
},
to={
"phone_number": "phoneNumber"
},
caller_id={
"phone_number": "phoneNumber"
},
play_prompt=True,
country={
"id_": "id"
}
)

result = sdk.ring_out.create_ring_out_call(
request_body=request_body,
account_id="~",
extension_id="~"
)

print(result)

read_ring_out_call_status

Returns a status of a 2-legged RingOut call.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}

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)
extension_idstrInternal identifier of the RingCentral extension/user (can be set to "~" to indicate that the extension associated with current authorization session should be used)
ringout_idstrInternal identifier of a RingOut call

Return Type

GetRingOutStatusResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

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

result = sdk.ring_out.read_ring_out_call_status(
account_id="~",
extension_id="~",
ringout_id="ringoutId"
)

print(result)

delete_ring_out_call

Cancels a 2-legged RingOut call.

  • HTTP Method: DELETE
  • Endpoint: /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId}

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)
extension_idstrInternal identifier of the RingCentral extension/user (can be set to "~" to indicate that the extension associated with current authorization session should be used)
ringout_idstrInternal identifier of a RingOut call

Example Usage Code Snippet

from ring_central import RingCentral, Environment

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

result = sdk.ring_out.delete_ring_out_call(
account_id="~",
extension_id="~",
ringout_id="ringoutId"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →