ProfileService
A list of all methods in the ProfileService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
read_tm_company_info_new | Returns information about one or more companies by their IDs. |
read_glip_person_new | Returns a user or multiple users by their ID(s). Batch request is supported. |
read_tm_company_info_new
Returns information about one or more companies by their IDs.
- HTTP Method:
GET
- Endpoint:
/team-messaging/v1/companies/{companyId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
company_id | str | ✅ | Internal identifier of an RC account/Glip company, or tilde (~) to indicate a company the current user belongs to. |
Return Type
TmCompanyInfo
Example Usage Code Snippet
from ring_central import RingCentral, Environment
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
result = sdk.profile.read_tm_company_info_new(company_id="companyId")
print(result)
read_glip_person_new
Returns a user or multiple users by their ID(s). Batch request is supported.
- HTTP Method:
GET
- Endpoint:
/team-messaging/v1/persons/{personId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
person_id | str | ✅ | Internal identifier of a user to be returned, the maximum number of IDs is 30 |
Return Type
TmPersonInfo
Example Usage Code Snippet
from ring_central import RingCentral, Environment
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
result = sdk.profile.read_glip_person_new(person_id="personId")
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs