POST
Service URL | postsms.asmx |
---|
SMS gönderimleriniz için SMS Web servisini kullanabilir, sonuçlarını bu servis üzerinden çekebilirsiniz.
Transactional Email web servisine ait aşağıda ki metodlar bulunmaktadır.
Method | Description |
---|---|
GetSmsBulkResult | Queries the status of bulk SMS messages between two dates. |
ReportSingleShotSms | Enables Single Shot SMS Reporting by Packet ID. |
ReportSmsWithPacketId | Enables SMS Reporting by Packet ID. |
SendBulkSms | Allows you to send SMS message to multiple GSM numbers. |
SendBulkSmsWithTypeAndKeyID | Enables Bulk SMS Sending with PostType and KeyID. |
SendPersonalSms | Allows you to send a single SMS message. |
SendPersonalSmsWithTypeAndKeyID | Enables Personal SMS sending with PostType and KeyID. |
SingleShotSms | Enables Single Shot SMS Sending. |
SingleShotSmsWithTypeAndKeyID | Enables Single Shot SMS Sending with PostType and KeyID. |
SendPersonalSms
<SendPersonalSms> |
---|
Allows you to send a single SMS message. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
Originator | SMS Sender's Name | MANDATORY |
NumberMessagePair | GSM Number and Text Message | MANDATORY |
Key | GSM Number | MANDATORY |
Value | Message Text | MANDATORY |
BeginTime | Time to start sending the message | MANDATORY |
EndTime | Time to end sending the message | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendPersonalSms xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <Originator>string</Originator> <NumberMessagePair> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> </NumberMessagePair> <BeginTime>string</BeginTime> <EndTime>string</EndTime> </SendPersonalSms> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendPersonalSmsResponse xmlns="http://ws.euromsg.com/postsms"> <SendPersonalSmsResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </SendPersonalSmsResult> </SendPersonalSmsResponse> </soap:Body> </soap:Envelope>
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | Not a valid orginator! | The SMS sender name is not defined in your account. |
SendBulkSms
<SendBulkSms> |
---|
Allows you to send SMS message to multiple GSM numbers. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
Originator | SMS Sender's Name | MANDATORY |
Message | SMS Text Message | MANDATORY |
GsmNumbers | GSM Numbers to send SMS to | MANDATORY |
BeginTime | Time to start sending the message | MANDATORY |
EndTime | Time to end sending the message | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendBulkSms xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <Originator>string</Originator> <Message>string</Message> <GsmNumbers> <string>string</string> <string>string</string> </GsmNumbers> <BeginTime>string</BeginTime> <EndTime>string</EndTime> </SendBulkSms> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendBulkSmsResponse xmlns="http://ws.euromsg.com/postsms"> <SendBulkSmsResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </SendBulkSmsResult> </SendBulkSmsResponse> </soap:Body> </soap:Envelope>
If the request was successful, CODE the parameter will return 00 as a response. In addition to that, regarding the sent SMS messages PACKET ID value is returned.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | Not a valid orginator! | The SMS sender name is not defined in your account. |
SendPersonalSmsWithTypeAndKeyID
<SendPersonalSmsWithTypeAndKeyID> |
---|
Tekli bir sms gönderimi yapılmasını sağlar. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
Originator | SMS Sender's Name | MANDATORY |
NumberMessagePair | GSM Number and Text Message | MANDATORY |
Key | GSM Number | MANDATORY |
Value | Message Text | MANDATORY |
KeyIDs | KEY_ID information of the GSM numbers to send SMS messages to | MANDATORY |
PostType | Type of the SMS message to send | MANDATORY |
BeginTime | Time to start sending the message | MANDATORY |
EndTime | Time to end sending the message | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendPersonalSmsWithTypeAndKeyID xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <Originator>string</Originator> <NumberMessagePair> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> </NumberMessagePair> <KeyIDs> <string>string</string> <string>string</string> </KeyIDs> <PostTypes> <string>string</string> <string>string</string> </PostTypes> <BeginTime>string</BeginTime> <EndTime>string</EndTime> </SendPersonalSmsWithTypeAndKeyID> </soap:Body> </soap:Envelope><?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendPersonalSmsWithTypeAndKeyIDResponse xmlns="http://ws.euromsg.com/postsms"> <SendPersonalSmsWithTypeAndKeyIDResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </SendPersonalSmsWithTypeAndKeyIDResult> </SendPersonalSmsWithTypeAndKeyIDResponse> </soap:Body> </soap:Envelope>
If the request was successful, CODE the parameter will return 00 as a response.
PostType parametresi gönderilen smsleri raporlarken gruplama yapabilmek adına kullanılır. Bu ön tanımlı bir parametre değildir. Örnek olarak doğrulama kodu smsleri için doğrulama
gibi bir değer kullanılabilir.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | Not a valid orginator! | The SMS sender name is not defined in your account. |
SendBulkSmsWithTypeAndKeyID
<SendBulkSmsWithTypeAndKeyID> |
---|
Birden fazla gsm numarasına bilgilendirme sms’i gönderilmesini sağlar. |
Parametreler
Parametre | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
Originator | SMS Sender's Name | MANDATORY |
Message | GSM Number and Text Message | MANDATORY |
GsmNumbers | GSM Numbers to send SMS to | MANDATORY |
KeyIDs | KEY_ID information of the GSM numbers to send SMS messages to | MANDATORY |
PostType | Type of the SMS message to send | MANDATORY |
BeginTime | Time to start sending the message | MANDATORY |
EndTime | Time to end sending the message | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendBulkSmsWithTypeAndKeyID xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <Originator>string</Originator> <Message>string</Message> <GsmNumbers> <string>string</string> <string>string</string> </GsmNumbers> <KeyIDs> <string>string</string> <string>string</string> </KeyIDs> <PostType>string</PostType> <BeginTime>string</BeginTime> <EndTime>string</EndTime> </SendBulkSmsWithTypeAndKeyID> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendBulkSmsWithTypeAndKeyIDResponse xmlns="http://ws.euromsg.com/postsms"> <SendBulkSmsWithTypeAndKeyIDResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </SendBulkSmsWithTypeAndKeyIDResult> </SendBulkSmsWithTypeAndKeyIDResponse> </soap:Body> </soap:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
PostType parametresi gönderilen smsleri raporlarken gruplama yapabilmek adına kullanılır. Bu ön tanımlı bir parametre değildir. Örnek olarak doğrulama kodu smsleri için doğrulama
gibi bir değer kullanılabilir.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
99 | Not a valid orginator! | The SMS sender name is not defined in your account. |
SingleShotSms
<SingleShotSms> |
---|
Bir gsm numarasına OTP(One Time Password) gönderimi yapılmasını sağlar. |
Parametreler
Parametre | Değer | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
Originator | Sms gönderici ismi | MANDATORY |
NumberMessagePair | Sms gönderilecek gsm numarası ve mesaj metni | MANDATORY |
Key | GSM numarası | MANDATORY |
Value | Mesaj metni | MANDATORY |
BeginTime | Mesajın gönderileceği zaman | MANDATORY |
EndTime | Gönderimin sonlanacağı zaman | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SingleShotSms xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <Originator>string</Originator> <NumberMessagePair> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> <EmKeyValue> <Key>string</Key> <Value>string</Value> </EmKeyValue> </NumberMessagePair> <BeginTime>string</BeginTime> </SingleShotSms> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SingleShotSmsResponse xmlns="http://ws.euromsg.com/postsms"> <SingleShotSmsResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </SingleShotSmsResult> </SingleShotSmsResponse> </soap:Body> </soap:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
ReportSmsWithPacketID
<ReportSmsWithPacketId> |
---|
Gönderilen bir tekli sms’in durumunu sorgulamayı sağlar. |
Parameters
Parameter | Değer |
---|---|
ServiceTicket | ServiceTicket obtained through Login |
PacketId | Sms gönderildikten sonra servisten dönen PacketID değeri |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ReportSmsWithPacketId xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <PacketId>string</PacketId> </ReportSmsWithPacketId> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ReportSmsWithPacketIdResponse xmlns="http://ws.euromsg.com/postsms"> <ReportSmsWithPacketIdResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </ReportSmsWithPacketIdResult> </ReportSmsWithPacketIdResponse> </soap:Body> </soap:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |
GetSmsBulkResult
<GetSmsBulkResult> |
---|
Queries the status of bulk SMS messages between two dates. |
Parameters
Parameter | Value | |
---|---|---|
ServiceTicket | ServiceTicket obtained through Login | MANDATORY |
BeginDate | Time to start sending the message | MANDATORY |
EndDate | Time to end sending the message | MANDATORY |
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetSmsBulkResult xmlns="http://ws.euromsg.com/postsms"> <ServiceTicket>string</ServiceTicket> <BeginDate>string</BeginDate> <EndDate>string</EndDate> </GetSmsBulkResult> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetSmsBulkResultResponse xmlns="http://ws.euromsg.com/postsms"> <GetSmsBulkResultResult> <PacketID>string</PacketID> <PacketStatus>string</PacketStatus> <DeliveryResults> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> <EmSmsDeliveryResult> <GsmNumber>string</GsmNumber> <DeliveryResult>string</DeliveryResult> <DeliveryDetail>string</DeliveryDetail> <DeliveryTime>string</DeliveryTime> <DeliveredMessage>string</DeliveredMessage> <PostType>string</PostType> <KeyID>string</KeyID> <SendDate>string</SendDate> </EmSmsDeliveryResult> </DeliveryResults> </GetSmsBulkResultResult> <BulkReport> <EmSmsBulkDeliveryResult> <PacketID>string</PacketID> <GsmNumber>string</GsmNumber> <DeliveryStatus>string</DeliveryStatus> <SendDate>string</SendDate> <DeliveryDate>string</DeliveryDate> <DeliveryDetail>string</DeliveryDetail> <KeyID>string</KeyID> <PostType>string</PostType> </EmSmsBulkDeliveryResult> <EmSmsBulkDeliveryResult> <PacketID>string</PacketID> <GsmNumber>string</GsmNumber> <DeliveryStatus>string</DeliveryStatus> <SendDate>string</SendDate> <DeliveryDate>string</DeliveryDate> <DeliveryDetail>string</DeliveryDetail> <KeyID>string</KeyID> <PostType>string</PostType> </EmSmsBulkDeliveryResult> </BulkReport> </GetSmsBulkResultResponse> </soap:Body> </soap:Envelope>
If the request was successful, the CODE parameter will return 00 as a response.
Error Parameters
Code | Error Message | Description |
---|---|---|
9998 | No session. Please try re-logon. | No active sessions found. Try login again. |