General
Mobildev Web Service is developed for enabling client end requests to be sent to Mobildev Service –which has a physical three layer architecture- according to certain standards. These requests utilize XML technology and HTTP protocol.
Software developers can access the service at http://gateway.mobilus.net/video/videoapi.asmx
Following is the minimum system requirements list in order to use Mobildev Bulk Video API:
public string getInfo(string username, string companycode, string password)
<?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>
<getInfo xmlns="http://mobildev.net/videocell/">
<username>string</username>
<companycode>string</companycode>
<password>string</password>
</getInfo>
</soap:Body>
</soap:Envelope>
After the information sent to Gateway is checked, the below values will be returned if the information is correct:
Credits remaining<10>
Originator1<10>
Originator2<10>
OriginatorN
<10> refers to the LineFeed character. Originator refers to the information that will be displayed on the recipient’s device as the Sender. This information can either be 11 character long numerical or alphanumerical statements. However, Turkish characters and special characters like &, <, > are not allowed.
If an error occurred, please consider checking the Error Codes Section of this document
Return SOAP Data
<?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>
<getInfoResponse xmlns="http://mobildev.net/videocell/">
<getInfoResult>string</getInfoResult
</getInfoResponse>
</soap:Body>
</soap:Envelope>
Notice Regarding Characters To Be Used
During sending, the below is not allowed:
Notice Regarding GSM Number Format
GSM numbers must be formatted as 05321111111, 5321111111, 905321111111 and written within Numbers parameter node. 04 Error Code will be returned if the GSM numbers are not in appropriate format. Error Code 04 means that the GSM number format is incorrect. In this case, please consider checking the information quoted under Notice Regarding GSM Number Format.
Sample Usage:
<Numbers>05321111111</Numbers>
<Numbers>5321111111</Numbers>
<Numbers>905321111111</Numbers>
Notice: you cannot send if you format numbers as +905321234567, 532 123 45 67, +05321234567 and use -, ( ), [ ], { } and etc. characters. |
Notice Regarding Standard Language Translation
If non-ASCII (American Standard Code for Information Interchange) characters were used within the text, use of a language translator will be necessary.
Sample Translator Code:
public static string ConvertMessage(string message) |
Notice Regarding Sender Information Usage
Sender Information (Alphanumeric/Originator) is the sender name in the messages. This name is 11 characters long and is company dependant. While sending, the exact sender information –provided by the activation unit during account activation- must be quoted within the Originator Parameter node. 06 Error Code will be returned if Sender Information does not match. Error Code 06 means that the Originator information is not defined.
Sample Usage with Upper and Lower Case:
<Originator>MOBILDEV</Originator>
<Originator>mobildev</Originator>
Notice: The Originator statement cannot contain Turkish characters and &, <, >, -, ( ), [ ], / signs. |
Get A Test AccountI Have a Project! |
Notice Regarding Bulk Video Sending Method
Video Sending (SendVideo)
public string sendVideo(string username, string companycode, string password, string subject, string gsmnos, string originator, string sdate, string fileName, byte[] fileBytes)
<?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>
<sendVideo xmlns="http://mobildev.net/videocell/">
<username>string</username>
<companycode>string</companycode>
<password>string</password>
<subject>string</subject>
<gsmnos>string</gsmnos>
<originator>string</originator>
<sdate>string</sdate>
<fileName>string</fileName>
<fileBytes>base64Binary</fileBytes>
</sendVideo>
</soap:Body>
</soap:Envelope>
If the operation is successful, TimerID of the message sending package will be returned in “ID: 123456” format.
If not, please consider checking the Error Codes Section of this document.
Return SOAP Data
<?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>
<sendVideoResponse xmlns="http://mobildev.net/videocell/">
<sendVideoResult>string</sendVideoResult>
</sendVideoResponse>
</soap:Body>
</soap:Envelope>
Video Sending (sendVideoMultiSender)
public string sendVideoMultiSender(string username, string companycode, string password, SMSInfo[] smsInfoArray, string originator, string sdate, string fileName, byte[] fileBytes)
Sample SOAP Data
<?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>
<sendVideoMultiSender xmlns="http://mobildev.net/videocell/">
<username>string</username>
<companycode>string</companycode>
<password>string</password>
<smsInfoArray>
<SMSInfo>
<GSMNo>string</GSMNo>
<Subject>string</Subject>
</SMSInfo>
<SMSInfo>
<GSMNo>string</GSMNo>
<Subject>string</Subject>
</SMSInfo>
</smsInfoArray>
<originator>string</originator>
<sdate>string</sdate>
<fileName>string</fileName>
<fileBytes>base64Binary</fileBytes>
</sendVideoMultiSender>
</soap:Body>
</soap:Envelope>
If the operation is successful, TimerID of the message sending package will be returned in “ID: 123456” format.
If not, please consider checking the Error Codes Section of this document
Return SOAP Data
<?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>
<sendVideoMultiSenderResponse xmlns="http://mobildev.net/videocell/"> <sendVideoMultiSenderResult>string</sendVideoMultiSenderResult>
</sendVideoMultiSenderResponse>
</soap:Body>
</soap:Envelope>
Get A Test AccountI Have a Project! |
public string reportByDate(string username, string companycode, string password, string FDate, string LDate)
Sample SOAP Data
<?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>
<reportByDate xmlns="http://mobildev.net/videocell/">
<username>string</username>
<companycode>string</companycode>
<password>string</password>
<FDate>string</FDate>
<LDate>string</LDate>
</reportByDate>
</soap:Body>
</soap:Envelope>
Return SOAP Data
<?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>
<reportByDateResponse xmlns="http://mobildev.net/videocell/">
<reportByDateResult>string</reportByDateResult>
</reportByDateResponse>
</soap:Body>
</soap:Envelope>
If the return value is successful:
“TimerID”<32>“GSM NO”<32>”Status”<32>”Playing Status”<32>”Date of playing the file”
Sample:
1234<32>05321111111<32>2<32>0<32><10>
1234<32>05321111111<32>2<32>1<32>2012-01-31 16:30<10>
If the return value is unsuccessful, then please consider checking the Error Codes Section of this document.
Notice: Status information “1” means that the message is waiting, “2” means that the message was delivered, “3” means that the message was not delivered. Playing Status “0” means that the video has not been watched yet, “1” means that the video has been watched. If the playing status is 0 then the date of playing the file will be blank. If the video was watched, date of playing the file will be displayed in the following format: YEAR-MONTH-DAY HOUR-MINUTE. <32> refers to the space character, while <10> refers to the LineFeed character. |
Reporting Basing On Message Package Sent (reportById)
public string reportById(string username, string companycode, string password, string packetid)
Sample SOAP Data
<?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>
<reportById xmlns="http://mobildev.net/videocell/">
<username>string</username>
<companycode>string</companycode>
<password>string</password>
<packetid>string</packetid>
</reportById>
</soap:Body>
</soap:Envelope>
Return SOAP Data
<?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>
<reportByIdResponse xmlns="http://mobildev.net/videocell/">
<reportByIdResult>string</reportByIdResult>
</reportByIdResponse>
</soap:Body>
</soap:Envelope>
If successful:
“TimerID”<32>“GSM NO”<32>”Status”<32>”Playing Status”<32>”Date of playing the file”
Sample:
1234<32>05321111111<32>2<32>0<32><10>
1234<32>05321111111<32>2<32>1<32>2012-01-31 16:30<10>
If the return value is unsuccessful, then please consider checking the Error Codes Section of this document
Notice: Status information “1” means that the message is waiting, “2” means that the message was delivered, “3” means that the message was not delivered. Playing Status “0” means that the video has not been watched yet, “1” means that the video has been watched. If the playing status is 0 then the date of playing the file will be blank. If the video was watched, date of playing the file will be displayed in the following format: YEAR-MONTH-DAY HOUR-MINUTE. <32> refers to the space character, while <10> refers to the LineFeed character. |
Notice: Reports may date back to 3 months, the most! |
Notice Regarding Status Control For Reporting
Error Code |
Description |
01 |
Incorrect User Name Incorrect Password Incorrect Company Code |
02 |
Subject cannot be left blank |
03 |
Subject cannot exceed 100 characters |
04 |
No GSM number information is sent for SMS sending |
05 |
Insufficient credits |
06 |
Filename cannot be left blank |
07 |
File type must be .3gp |
08 |
No file was sent |
09 |
File size cannot exceed 2 MB |
10 |
An error occurred creating the file. Please make sure that your file is in correct format and that it is processed as necessary. |
11 |
Incorrect sender (originator) information |
12 |
Specified packetId cannot be found on the system or not yet processed |
13 |
Incorrect or missing FDate or Sdate. Valid format: 2012-12-31 (Year-Month-Day) |
14 |
No messages sent within the period specified |
15 |
Unidentified Error |
Get A Test AccountI Have a Project! |