Queries the content of a sort script.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName] HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes my_app

The name or ID of the application.

appVersionId String Path Yes 123456

The version number of the application.

fileName String Path Yes script1

The name of the script file.

scriptName String Path Yes UserScorer.cava

The name of the script.

Response parameters

Parameter Type Example Description
requestId String ABCDEFGH

The ID of the request.

result Struct

The content of the sort script.

content String YWJjZGVmZw==

The script content that is encoded in the Base64 format.

createTime String 2020-04-02 20:21:14

The time when the script was created.

modifyTime String 2020-04-02 21:21:14

The last time when the script was last modified.

version Long 123456

The version of the script.

Examples

Sample requests

GET /v4/openapi/app-groups/my_app/apps/123456/sort-scripts/script1/files/src/UserScorer.cava

Sample success responses

XML format

<requestId>ABCDEFGH</requestId>
<result>
    <content>YWJjZGVmZw==</content>
    <version>123456</version>
</result>

JSON format

{
    "requestId" : "ABCDEFGH",
    "result" : {
        "content" : "YWJjZGVmZw==",
        "version" : 123456
    }
}

Sample error response

```
Error response
{
    "requestId" : "ABCDEFGH",
    "code":"ResourceNotFound",
    "message":"The specified script not found.",
    "httpCode":404
}
```

Error codes

For a list of error codes, visit the API Error Center.