Skip to content

GetImage

Use this api get the specified image information.

POST /openapi/common/v1/image/get

Request Parameters

Parameter Type Required Description
imageId string true The image id returned when you upload the image

Response Parameters

Name Type Description
imageId string The unique id identity the file uploaded.
imageUrl string A network address of the file with an expire time.

Request Example

Example

curl -X POST  \
-H "X-Advai-Country: ID" \
-H "Authorization: {Your Access Key} + ':' + signature" \
-H "Content-Type: application/json" \
-d '{
        "imageId":"OPEN_API_20201230233212133_3363472868.jpeg"
    }' \
"{Ginee Host}/openapi/common/v1/image/get"

Success

{
    "code":"SUCCESS",
    "message":"OK",
    "data":{
        "imageId":"OPEN_API_20201230233212133_3363472868.jpeg",
        "imageUrl":"http://genie-public.oss-ap-southeast-1-internal.aliyuncs.com/api/stag/images/OPEN_API_20201230233212133_3363472868.jpeg?Expires=1609658053&OSSAccessKeyId=LTAI4Fbzizhbxa6uodNzd9Y4&Signature=PfhzTh0dn0RwqcLHCSZmt6A%2BIw0%3D"
    },
    "extra":null,
    "transactionId":"8d0aaedf55c4048a"
}

Invalid image id

{
    "code": "PARAMETER_ERROR",
    "message": "Image id is invalid",
    "data": null,
    "extra": null
}