cURL
curl --request POST \ --url https://api.acedata.cloud/shorturl \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content": "https://platform.acedata.cloud/documents/a2303356-6672-4eb8-9778-75f55c998fe9" } '
{ "data": { "url": "https://suro.id/abc123" }, "success": true }
API token from https://platform.acedata.cloud
Specifies the format of the response from the server.
application/json
The content of the URL to be shortened
"https://platform.acedata.cloud/documents/a2303356-6672-4eb8-9778-75f55c998fe9"
OK, the request is successful.
The output data of the response
The flag indicates the request is successful or not
このページは役に立ちましたか?