POST api/Sms/Post

Request Information

URI Parameters

None.

Body Parameters

SmsRequest
NameDescriptionTypeAdditional information
AccountSid

string

None.

AuthToken

string

None.

Body

string

None.

From

string

None.

To

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountSid": "sample string 1",
  "AuthToken": "sample string 2",
  "Body": "sample string 3",
  "From": "sample string 4",
  "To": "sample string 5"
}

application/xml, text/xml

Sample:
<SmsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel.Sms">
  <AccountSid>sample string 1</AccountSid>
  <AuthToken>sample string 2</AuthToken>
  <Body>sample string 3</Body>
  <From>sample string 4</From>
  <To>sample string 5</To>
</SmsRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SmsRequest'.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Status

HttpStatusCode

None.

HasError

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 100,
  "HasError": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel">
  <HasError>true</HasError>
  <Message>sample string 2</Message>
  <Status>Continue</Status>
</ApiResponse>