POST api/v1/SendSMS

Request Information

URI Parameters

None.

Body Parameters

SendSMSRequest
NameDescriptionTypeAdditional information
username

string

None.

password

string

None.

sdate

string

None.

vperiod

string

None.

message

Message

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2",
  "sdate": "sample string 3",
  "vperiod": "sample string 4",
  "message": {
    "sender": "sample string 1",
    "text": "sample string 2",
    "utf8": "sample string 3",
    "gsm": [
      "sample string 1",
      "sample string 2"
    ]
  }
}

text/plain, application/octet-stream

Sample:
{"username":"sample string 1","password":"sample string 2","sdate":"sample string 3","vperiod":"sample string 4","message":{"sender":"sample string 1","text":"sample string 2","utf8":"sample string 3","gsm":["sample string 1","sample string 2"]}}

application/xml, text/xml

Sample:
<SendSMSController.SendSMSRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoldMesaj.ApiV1.Controllers">
  <message>
    <gsm xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </gsm>
    <sender>sample string 1</sender>
    <text>sample string 2</text>
    <utf8>sample string 3</utf8>
  </message>
  <password>sample string 2</password>
  <sdate>sample string 3</sdate>
  <username>sample string 1</username>
  <vperiod>sample string 4</vperiod>
</SendSMSController.SendSMSRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SendSMSResponse
NameDescriptionTypeAdditional information
sonuc

boolean

None.

mesaj

string

None.

status

string

None.

error

string

None.

gonderilenAdet

integer

None.

hataliAdet

integer

None.

hataliGsm

string

None.

hataliTckNo

string

None.

result

Result

None.

Response Formats

application/json, text/json

Sample:
{
  "sonuc": true,
  "mesaj": "sample string 2",
  "status": "sample string 3",
  "error": "sample string 4",
  "gonderilenAdet": 5,
  "hataliAdet": 6,
  "hataliGsm": "sample string 7",
  "hataliTckNo": "sample string 8",
  "result": {
    "messageid": "sample string 1",
    "count": 2,
    "kredi": 3
  }
}

text/plain, application/octet-stream

Sample:
{"sonuc":true,"mesaj":"sample string 2","status":"sample string 3","error":"sample string 4","gonderilenAdet":5,"hataliAdet":6,"hataliGsm":"sample string 7","hataliTckNo":"sample string 8","result":{"messageid":"sample string 1","count":2,"kredi":3}}

application/xml, text/xml

Sample:
<SendSMSController.SendSMSResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoldMesaj.ApiV1.Controllers">
  <error>sample string 4</error>
  <gonderilenAdet>5</gonderilenAdet>
  <hataliAdet>6</hataliAdet>
  <hataliGsm>sample string 7</hataliGsm>
  <hataliTckNo>sample string 8</hataliTckNo>
  <mesaj>sample string 2</mesaj>
  <result>
    <count>2</count>
    <kredi>3</kredi>
    <messageid>sample string 1</messageid>
  </result>
  <sonuc>true</sonuc>
  <status>sample string 3</status>
</SendSMSController.SendSMSResponse>