POST api/RequestSMS/requestsms

Request Information

URI Parameters

None.

Body Parameters

RequestSMSReceivedDataModels
NameDescriptionTypeAdditional information
handphone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "handphone": "sample string 1"
}

application/xml, text/xml

Sample:
<RequestSMSReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.ReceivedDataModels">
  <handphone>sample string 1</handphone>
</RequestSMSReceivedDataModels>

multipart/form-data

Sample:
<RequestSMSReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.ReceivedDataModels"><handphone>sample string 1</handphone></RequestSMSReceivedDataModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RequestSMSBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

RequestSMSSentDataModels

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": {
    "handphone": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<RequestSMSBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.BaseTreeModels">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.SentDataModels">
    <d2p1:handphone>sample string 1</d2p1:handphone>
  </data>
  <message>sample string 1</message>
  <success>true</success>
</RequestSMSBaseTreeModels>

multipart/form-data

Sample:
<RequestSMSBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RequestSMSIntegrator.SentDataModels"><d2p1:handphone>sample string 1</d2p1:handphone></data><message>sample string 1</message><success>true</success></RequestSMSBaseTreeModels>