Home > API Center > API interface guide
| Parameters | Description | Required | Required |
|---|---|---|---|
| fileName | File name 5-32 bits | Yes | String |
| file | base64 file stream | Yes | String |
Request URL:
https://api.itniotech.com/v3/cc/preview/upload
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"fileName":"234567.xls",
"file":"base64"
}| Parameters | Description | Required |
|---|---|---|
| status | status code,0 is successful. For other failures, please refer to the interface response code | String |
| reason | Failure reason description | String |
| data | JSONObject | |
| filePath | File path | String |
| numberTotalCount | Number of numbers | Integer |
| numberSameCount | Number of duplicate numbers | Integer |
{
"status":"0",
"reason":"success",
"data":{
"filePath":"/mnt/cc/a.xls",
"numberTotalCount":1,
"numberSameCount":2
}
}
| status | Description |
|---|---|
| 0 | Success |
| -1 | Authentication error |
| -2 | Authentication error |
| -16 | Timestamp expires |
| -18 | Port program unusual |
| -20 | Data existing |
| -22 | Parameter exception |
| -23 | Data caps |
| -38 | File too large |
| -39 | The uploaded file format is incorrect |
| -40 | You have imported more than 100,000 pieces of data. Please re-import less than or equal to 100,000 pieces of data. |
Feedback
Was this page helpful?