English
Fx.erpdss
About 237 wordsLess than 1 minute
2026-01-09
1. Accessing External Interfaces via Integration Platform
The API code accesses external system interfaces through the integration platform, which provides unified access control management.
Fx.erpdss.proxyRequest(<String url>, <String method>, <Map headers>, <String body>, <String contentType>, <Boolean requestBodyNeedBase64Decode>, <Boolean responseBodyNeedBase64Encode>)
Request parameters
Request Body
| Parameter Name | object | Description | Required |
|---|---|---|---|
| url | String | Target URL to access. If present, request parameters should be included. | Y |
| method | String | HTTP request method | Y |
| headers | Map | Request headers in Map<String, List<String>> format | Y |
| body | String | Request body (can be empty) | -- |
| contentType | String | Content type of the request (default: application/json) | -- |
| requestBodyNeedBase64Decode | Boolean | Whether the request body needs Base64 decoding to byte[] | -- |
| responseBodyNeedBase64Encode | Boolean | Whether the response body needs Base64 encoding to string | -- |
Return Parameters
| Parameter Name | object | Description |
|---|---|---|
| headers | Map | Request headers in Map<String, List<String>> format |
| code | Integer | Status code |
| message | String | Status message |
| body | String | Data payload |
Return an example
{
"headers": {
"date": [
"Thu, 31 Oct 2024 09:31:47 GMT"
]
},
"code": 200,
"message": "",
"body": "{\"id\":4559,\"uuid\":\"3f97cf57-6abd-46eb-a501-fc7f49aa2ab0\",\"hitokoto\":\"We are students, and students should behave like students.\",\"type\":\"b\",\"from\":\"JoJo's Bizarre Adventure\",\"from_who\":null,\"creator\":\"YourHouseExploded\",\"creator_uid\":3557,\"reviewer\":0,\"commit_from\":\"web\",\"created_at\":\"1564109075\",\"length\":17}"
}Code examples
def (boolean error, Map data, String message) = Fx.biz.callAPI("Fx.erpdss.proxyRequest",
"https://www.google.com", "GET", [:], null
)
if (error) {
log.info("error: " + message)
} else {
log.info(data)
}Owner:谢嘉裕Ken
