文档中心 > API类目 > 无线安全聚安全云端对外

alibaba.security.wsg.thirdjpg.generate (无线保镖三方图片生成)

生成无线保镖三方图片

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
encryption_input String 必须 { "auth_key":"0000", "cert_rsa_base64":"hhhhhhhhhh", "os":"Android", "appkey": { "k1":"secret1", "k2":"secret2", "kn":"secretn" }, "security_data": { "s1":"data1", "s2":"data2", "sn":"datan" }, "extra_data": { "e1":"edata1", "e2":"edata2", "en":"edatan" } } 关于入参的具体含义请参考文档http://docs.alibaba-inc.com:8090/pages/viewpage.action?pageId=247408089

响应参数

名称 类型 示例值 描述
encryption_output String { "error_code":0, "message":"success", "jpg_name":"yw_1222_0000.jpg", "jpg_content_base64":"3333333hhhhhhhh" } 关于出参的字段含义,参考文档 http://docs.alibaba-inc.com:8090/pages/viewpage.action?pageId=247408089

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityWsgThirdjpgGenerateRequest req = new AlibabaSecurityWsgThirdjpgGenerateRequest();
req.setEncryptionInput("{ 	\"auth_key\":\"0000\", 	\"cert_rsa_base64\":\"hhhhhhhhhh\", 	\"os\":\"Android\", 	\"appkey\": 		{ 			\"k1\":\"secret1\", 			\"k2\":\"secret2\", 			\"kn\":\"secretn\" 		}, 	\"security_data\": 		{ 			\"s1\":\"data1\", 			\"s2\":\"data2\", 			\"sn\":\"datan\" 		}, 	\"extra_data\": 		{ 			\"e1\":\"edata1\", 			\"e2\":\"edata2\", 			\"en\":\"edatan\"  		} }");
AlibabaSecurityWsgThirdjpgGenerateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_wsg_thirdjpg_generate_response>
    <encryption_output>{ 	&quot;error_code&quot;:0, 	&quot;message&quot;:&quot;success&quot;, 	&quot;jpg_name&quot;:&quot;yw_1222_0000.jpg&quot;, 	&quot;jpg_content_base64&quot;:&quot;3333333hhhhhhhh&quot;  }</encryption_output>
</alibaba_security_wsg_thirdjpg_generate_response>

异常示例

  • 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

返回
顶部