English
Fx.erpdss
About 360 wordsAbout 1 min
2026-01-09
Summary
The overview of this document is as follows: This document introduces the API definitions of Fx.erpdss, usage methods, and related notes.
1. Accessing External Interfaces via Integration Platform
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
Changelog
| Version | Date | Changes | Author |
|---|---|---|---|
| v1.0 | 2026-05-20 | Initial version |
Background
This document provides detailed information about the Fx.erpdss API functionality and usage, helping developers integrate relevant capabilities.
Applicable Scenarios
Specific applicable scenarios are determined by actual business needs. Developers can select the appropriate API for integration as required.
Prerequisites
- Access to Fxiaoke Open Platform
- Application authorization and configuration completed
- Basic knowledge of relevant business domain
Steps
Please refer to the detailed instructions for each API.
Notes
- Ensure prerequisites are met before calling APIs
- Pay attention to API call frequency limits
- Refer to error code documentation for exception handling
Compatibility note: This version currently has no deprecated or compatibility notes.
