huawei-cloud-api-definitions-KooMessage 0.1.20240202

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"","definitions":{"AimSaErrorMsg":{"properties":{"error_code":{"description":"错误码。","type":"string"},"error_msg":{"description":"结果详情。","type":"string"}}},"UploadMediaResponseModel":{"description":"上传素材返回信息。","properties":{"resource_id":{"description":"资源ID。","type":"string"},"resource_type":{"description":"资源类型。\n- 1:图片\n","type":"integer"},"resource_url":{"description":"资源路径。","type":"string"}}},"UploadMediaRsp":{"description":"上传资源返回体。","properties":{"data":{"$ref":"#/definitions/UploadMediaResponseModel"}}}},"description":null,"group_id":"57a445a5fb5d4ba5b80445bd4c5ec9b3","host":"koomessage.myhuaweicloud.cn","id":"e93b994f4b644e8aba602c138612422e","info_version":"v1","method":"post","name":"UploadMedia","parameters":{},"paths":{"/v1/aim-sa/media/upload":{"post":{"consumes":["multipart/form-data"],"description":"支持用户上传图片资源。","operationId":"UploadMedia","parameters":[{"description":"图片资源。\n\n> 文件格式与文件名后缀需保持一致,请勿修改原始文件后缀,否则导致资源上传失败。\n","in":"formData","name":"file","required":true,"type":"file"},{"description":"文件类型。\n- PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。\n- BG_IMAGE:上传服务号主页背景图。分辨率大于等于1440*810。\n- FASTAPP_LOGO:上传快应用LOGO。上传快应用LOGO。支持jpg、bmp和jpeg格式,分辨率大于等于192*192,大小不超过4M。\n- OTHER:上传授权证明和营业执照等\n","in":"formData","name":"file_type","required":true,"type":"string"},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"返回信息。","examples":{"application/json":{"data":{"auth_resource_url":"https://cn-north-4-km-aim-sa.obs.cn-north-4.myhuaweicloud.com:443/AimSauploadService/0ee8432935c84290bd67993ac7059ed720220530-141334%28WeLinkPC%29.png?AccessKeyId=2PPEAYTMASZKZJIIEMPR&Expires=1654661170&Signature=y9f8j54CiJKxVjveR2Klv7TGS%2BY%3D","resource_id":"708feafdf1354805bd66e7fddc678dc3","resource_type":null,"resource_url":"AimSauploadService/0ee8432935c84290bd67993ac7059ed720220530-141334(WeLinkPC).png"}}},"schema":{"$ref":"#/definitions/UploadMediaRsp"}},"400":{"description":"非法参数。","schema":{"$ref":"#/definitions/AimSaErrorMsg"}},"500":{"description":"内部错误。","schema":{"$ref":"#/definitions/AimSaErrorMsg"}}},"summary":"上传智能信息服务号图片资源","tags":["AimSaPubUnify"],"x-apigateway-request-type":"Public","x-is-registered":"Y","x-request-examples-description-1":"上传智能信息服务号图片资源","x-request-examples-url-1":"https://koomessage.myhuaweicloud.cn/v1/aim-sa/media/upload","x-support-sdk":"Y"}}},"product_short":"KooMessage","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-app-optional":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-opt":{"access-auth-type":"optional"},"x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-none":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM_NONE"}},"summary":"上传智能信息服务号图片资源","tags":"一站式创建服务号","uri":null,"version":"2.0"}