Skip to main content

This is the SDK for AlibabaCloudRPA OpenAPI.

Project description

阿里云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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpa_openapi-1.0.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpa_openapi-1.0.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file rpa_openapi-1.0.1.tar.gz.

File metadata

  • Download URL: rpa_openapi-1.0.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rpa_openapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dbe773390f312c23b8539d8cdef2d1ff48503fb7f0833102118ac45f793339d9
MD5 9cc96c8fd57960b9be8e3fecf7d0f300
BLAKE2b-256 2b4b09e38007a6f916febca7fa62b79b40d9af14231236c549c29ecfe51a4d9e

See more details on using hashes here.

File details

Details for the file rpa_openapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rpa_openapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for rpa_openapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 449b4b7e4d725788d070b27cdb8f66a137976df583baf440ea2273e8c8cc3810
MD5 041fbd15df028253eff39e787c663f43
BLAKE2b-256 298d422a139de1850ac316c2ae579416b89d06af07fcfd886ae6fbd79c15ec64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page