ApiInfoService
A list of all methods in the ApiInfoService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
read_api_versions | Returns current API version(s) and server info. |
read_api_version | Returns 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
Name | Type | Required | Description |
---|---|---|---|
api_version | str | ✅ | API 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