sms
-
-
-

You are here: Napishi.Ru / Program interfaces (API) for sending telegrams, letters etc.

Bookmark  [Russian] [English]
- - ---------------- - ---------
Authorization:
eMail

Password


 Remember me
Register
Forgot password?

Send:
Letter
Telegram
FAX
Telex

How to pay
Directory
Tariffs
Program interfaces (API) for sending telegrams, letters etc.
About
Help
Sponsors
Advertise on this site
Support us
Guestbook
Publications


Help to save children!

-
-
-
-
-
-
-
-
Program interfaces (API) for sending telegrams, letters etc.
Below is the description of HTTP/XML interfaces for sending messages via Napishi.Ru. XML-requests should be POSTed to URL=http://www.napishi.ru/extxml.asp, server will also respond with XML, containing <result> - "OK" or "ERROR".
    Addition: due to numerous requests from webmasters now messages can be sent with HTTP-GET method, with parameters, appended to url.
    You need to have positive balance to send messages via this XML-interface. Look for tariffs here.
    Examples are available below.
Parameter name
Parameter description
Parameters for any request
user
Login of the registered user
[pwd]
Cleartext password
[pwdhash]
MD-5 hash of password (use instead of pwd)
command
send - Sends the message.
status - Returns status of the message, sent earlier.
balance - Returns your account balance in USD.
price - Calculates the price of the given message. All parameters are the same as in "send" command.
cancel - Cancel message (if possible). All parameters are the same as in "status" command.
delete - Delete message (if possible). All parameters are the same as in "status" command.
Parameters for command=status
order_id
Order number
Parameters for command=send
product_id
1 - Letter
2 - Telegram
4 - Telex
message_body
Message text
[debug]
If not empty, the message will not be actually sent, instead of that user will receive back an email message with gebug info inside.
[schedule]
Date and time in "yyyyMMdd hh:mm" format. If given, the message will be scheduled.
[postback_url]
URL, to that would be sent a notification, that message got a "final" status. Notification will be POST'ed as XML. Also can be a valid email address (instead of URL) - to get notified by email instead of POSTing.
Parameters for command=send & product_id=4 (Telex)
full_telex_no
Full recipient's telex number, including country code.
Parameters for command=send & product_id=2 (Telegram)
country_code
Standatd 2-letter country code. "RU" for Russia.
city_address
City.
street_address
Street address.
recipient_name
Recipient name.
signature
Signature (sender's name)
[urgent]
Urgency attribute, applicable to Russia only. If given, telegram will be treat as "urgent".
Parameters for command=send & product_id=1 (Letter)
to_country_code
Standatd 2-letter country code. "RU" for Russia.
[to_zipcode]
Zipcode
[to_region]
Addressee region (area, state etc.)
to_city_address
Addressee city.
to_street_address
Addressee street address
to_name
Addressee name
[to_company]
Addressee company name
from_country_code
Standard 2-letter sender's country code. "RU" for Russia.
[from_zipcode]
Sender's zipcode
[from_region]
Sender's region (area, state etc.)
[from_city_address]
Sender's city.
[from_street_address]
Sender's street address.
from_name
Sender's name.
[from_company]
Sender's company.
[picture_url]
URL of the picture to print
You can download script (.vbs) examples, that uses XML-interfaces, described above.

Last polls results


Google search  This site only All the web
-
-
-
-
-
The advantages of being our sponsor.

-----
[Russian] [English]
Send telegram, 'paper' letter and telex messages in any country via internet. Hybrid mail system.  
Idea, design, programming, content & support © 2001-2016 Leonid Medvedev.  

Rambler's Top100 Rambler's Top100
.