Skip to main content

ApiInfoService

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

MethodsDescription
read_api_versionsReturns current API version(s) and server info.
read_api_versionReturns current API version info by apiVersion.

read_api_versions

Returns current API version(s) and server info.

  • HTTP Method: GET
  • Endpoint: /restapi

Return Type

ApiVersionsList

Example Usage Code Snippet

from ring_central import RingCentral, Environment

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

result = sdk.api_info.read_api_versions()

print(result)

read_api_version

Returns current API version info by apiVersion.

  • HTTP Method: GET
  • Endpoint: /restapi/{apiVersion}

Parameters

NameTypeRequiredDescription
api_versionstrAPI version to be requested, for example 'v1.0'

Return Type

ApiVersionInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment

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

result = sdk.api_info.read_api_version(api_version="apiVersion")

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →