Path:openapi/v1/orgs/{org_id}
Method:GET
Content-type: application/json
Body: Refer to public parameter description
Response:
{ "code": 200, "message": "success", "data": [ { "org_id": 2100230837, "org_name": "Demo experience", "is_admin": false, "apps": [ { "project_id": 2111833, "project_name": "e-commerce-demo", "project_display_name": "E-commerce demo", "role": "member", "app_id": 20000341, "app_name": "E-commerce demo" } ] } ] }
Field meaning description
Field | Type | Description |
|---|---|---|
org_id | int | Group ID |
org_name | str | Group name |
is_admin | bool | Is it an administrator? |
apps | list | application information |
App information related:
Field | Type | Description |
|---|---|---|
app_id | int | App ID |
app_name | str | app name |
app_en_name | str | Application English name |
project_id | int | Project ID
|
project_name | str | Project name
|
project_display_name | str | project name
|
role | str | role
|
Bc is the RangersClient created. For its initialization, please refer to the "OpenAPI SDK Instructions". SDKs in various languages provide similar interfaces.
Call (Python):
res = bc.data_finder('/openapi/v1/orgs/10052') print(res.content)
Return result:
{ "code": 200, "message": "success", "data": [ { "org_id": 10052, "org_name": "test_role", "apps": [ { "app_id": 374683, "app_name": "test_role", "app_en_name": "test_role" } ] } ] }