Skip to main content

阿里云RPA OpenAPI SDK

查询客户端信息

from rpa_openapi.RPAClient import RPAClient
from rpa_openapi.V20200430.QueryClientViewsRequest import QueryClientViewsRequest
from rpa_openapi.V20200430.ResponseModels import QueryClientViewsResponse

AccessKeyId = "你的AccessKeyId"
AccessSecret = "你的AccessSecret"

rpa_client = RPAClient(AccessKeyId, AccessSecret)
query_client_views_request = QueryClientViewsRequest()
query_client_views_request.current_page = 1
query_client_views_request.page_size = 1
query_client_views_response = rpa_client.do_action(query_client_views_request)
print(query_client_views_response.json())
query_client_views_response_data = QueryClientViewsResponse(**query_client_views_response.json())
# requestId
print("requestId: ", query_client_views_response_data.requestId)
# success
print("success: ", query_client_views_response_data.success)
# code
print("code: ", query_client_views_response_data.code)
# msg
print("msg: ", query_client_views_response_data.msg)
# msgCode
print("msgCode: ", query_client_views_response_data.msgCode)
# uuid
print("uuid: ", query_client_views_response_data.data[0].uuid)
# groupId
print("groupId: ", query_client_views_response_data.data[0].groupId)
# clientType
print("clientType: ", query_client_views_response_data.data[0].clientType)
# name
print("name: ", query_client_views_response_data.data[0].name)
# ip
print("ip: ", query_client_views_response_data.data[0].ip)
# macAddress
print("macAddress: ", query_client_views_response_data.data[0].macAddress)
# status
print("status: ", query_client_views_response_data.data[0].status)
# dispatchMode
print("dispatchMode: ", query_client_views_response_data.data[0].dispatchMode)
# remark
print("remark: ", query_client_views_response_data.data[0].remark)
# connectTime
print("connectTime: ", query_client_views_response_data.data[0].connectTime)
# disconnectTime
print("disconnectTime: ", query_client_views_response_data.data[0].disconnectTime)
# userId
print("userId: ", query_client_views_response_data.data[0].userId)
# userName
print("userName: ", query_client_views_response_data.data[0].userName)
# appId
print("appId: ", query_client_views_response_data.data[0].appId)
# appName
print("appName: ", query_client_views_response_data.data[0].appName)
# taskId
print("taskId: ", query_client_views_response_data.data[0].taskId)
# connectStatus
print("connectStatus: ", query_client_views_response_data.data[0].connectStatus)
# currentPage
print("currentPage: ", query_client_views_response_data.pager.currentPage)
# totalPage
print("totalPage: ", query_client_views_response_data.pager.currentPage)
# pageSize
print("pageSize: ", query_client_views_response_data.pager.pageSize)
# total
print("total: ", query_client_views_response_data.pager.total)
# limit
print("limit: ", query_client_views_response_data.pager.limit)
# offset
print("offset: ", query_client_views_response_data.pager.offset)
# instanceId
print("instanceId: ", query_client_views_response_data.instanceId)

Metadata

Release files for rpa-openapi 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpa-openapi 1.0.1
File Size Uploaded Provenance Actions
rpa_openapi-1.0.1.tar.gz 18.2 kB Without provenance Details for rpa_openapi-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rpa-openapi 1.0.1
File Interpreter ABI Platform Actions
rpa_openapi-1.0.1-py3-none-any.whl Python 3 none any Details for rpa_openapi-1.0.1-py3-none-any.whl

Total release size: 58.7 kB

Release files / rpa_openapi-1.0.1.tar.gz

Download URL rpa_openapi-1.0.1.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dbe773390f312c23b8539d8cdef2d1ff48503fb7f0833102118ac45f793339d9
BLAKE2b-256 checksum
How to use checksums
2b4b09e38007a6f916febca7fa62b79b40d9af14231236c549c29ecfe51a4d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

Release files / rpa_openapi-1.0.1-py3-none-any.whl

Download URL rpa_openapi-1.0.1-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
449b4b7e4d725788d070b27cdb8f66a137976df583baf440ea2273e8c8cc3810
BLAKE2b-256 checksum
How to use checksums
298d422a139de1850ac316c2ae579416b89d06af07fcfd886ae6fbd79c15ec64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

Security for rpa-openapi 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page