CRI ADX
Last Updated: 2024-07-17 10:47 p
|
This sections describes the JSON-format command strings that are used in the criAcApiClient_Call function and the criAcApiClient_GetResponseBuffer function.
The JSON-format used for sending is the object whose key is "request"
in the first hierarchy.
The following value is specified in the "request"
object:
Key | Value | Note |
---|---|---|
"version" | "1.0.0" | Currently fix at "1.0.0" |
"module" | "project" , "preview" , "build" , "debug" or "error" | Specifies the module name corresponding to the function |
"function" | Function name |
If the function requires arguments, creates an object with "arguments"
key and specifies the key and value for that object.
All argument values are specified in string format.
For example, the create_aisac_graph function written with JSON-format command string is as follows:
The sample is displayed with indentation for easy viewing, but indentation is not necessary when actually sending.
In other words, the following string acts the same when sending:
The JSON-format used for sending is the object whose key is "response"
in the first hierarchy.
The following value is specified in the "response"
object:
Key | Value | Note |
---|---|---|
"version" | "1.0.0" | Currently fix at "1.0.0" |
"module" | "project" , "preview" , "build" , "debug" or "error" | Module name corresponding to the function |
"function" | Function name | |
"status" | "success" or "error" | |
"message" | Error message | None if empty |
"data" | Return value of function | None if empty |
The "message"
key value is included if the "status"
key value is "error"
.
The "data"
key value is included if the function has a return value.
For example, the character string obtained by receiving the execution result of the create_aisac_graph function with the criAcApiClient_GetResponseBuffer function will be in the following JSON format.
The sample is displayed with indentation for easy viewing, but indentation is not necessary when actually receiving.
In other words, the following string acts the same when receiving:
JSON data received by CRI Atom CRI Atom Craft through the CRI Atom Craft Robot is processed as "**UTF-8**".
If you are sending or receiving JSON data from another programming language, you must use UTF-8 encoded text.