account.aliyuncs.com.GetPubKey.2013-07-01 (获取用户公钥)

根据用户的appkey查询用户的pubkey

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
OwnerAppkey String 必须 targetAppkey appkey

响应参数

名称 类型 示例值 描述
PubKey String PubKey 用户的公钥
OwnerId String OwnerId appkey的OwnerId
KeyType String KeyType 用户appkey的类型
CreateTime Date 2015-05-11 00:00:00 创建key的时间
RequestId String RequestId RequestId
Message String Message Message
Code String 200 返回code
AppKey String AppKey 用户的appkey

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AccountAliyuncsComGetPubKey2013-07-01Request req = new AccountAliyuncsComGetPubKey2013-07-01Request();
req.setwnerAppkey("targetAppkey");
AccountAliyuncsComGetPubKey2013-07-01Response rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<GetPubKeyResponse>
    <PubKey>PubKey</PubKey>
    <OwnerId>OwnerId</OwnerId>
    <KeyType>KeyType</KeyType>
    <CreateTime>2015-05-11 00:00:00</CreateTime>
    <RequestId>RequestId</RequestId>
    <Message>Message</Message>
    <Code>200</Code>
    <AppKey>AppKey</AppKey>
</GetPubKeyResponse>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部