Push a record, when a outbound text message has CR.
URL
Request Method
- POST
Request Header
- content-type: application/json
- X-API-Key: apiKey
Request Examples
curl --request POST \
--url http://sgapi.yoni-tech.com/v1/sms/push/cr \
--header 'content-type: application/json' \
--header 'X-API-Key: Hs42eBZ6vuTR7oBSs3zq7HscgiAr6Y252Y5BbzrbKoI='
--data '
{
"messageId": "2023020417303301200000000204"
}
'
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"messageId\":\"2023020417303301200000000204\"}");
Request request = new Request.Builder()
.url("http://sgapi.yoni-tech.com/v1/sms/push/cr")
.post(body)
.addHeader("content-type", "application/json")
.addHeader("X-API-Key", "Hs42eBZ6vuTR7oBSs3zq7HscgiAr6Y252Y5BbzrbKoI=")
.build();
Response response = client.newCall(request).execute();
Request Parameter
Name | Optional | Type | Description |
---|---|---|---|
messageId | no | String | unique identifier for this text message |
Response Example
{
"code": "0",
"message": "success",
"data": null
}
Response Result
Name | Type | Description |
---|---|---|
code | String | YONI-TECH's respense code (error codes) |
message | String | describe the result |
data | Object | obj is always null |