Purchase SMS credits


Search on sms.vianett.com

 

ViaNett's main pages
Choose language



YAP documentation

You will only need this documenation if you want to make your own SMS client on you own using the YAP protocol.

By Nils Arne Tvedten
Updated: 3/18/2004

The YAP protcol is used to send and receive messages over the TCP/IP protocol.

Destination host: cpa.vianett.no
Destination port: 31337

YAP syntax
The YAP protocol allows you to open you own connection to ViaNett, where you can send and receive SMS by use simple commands. Each command is always acknowledged by an ack command.

All commands has this syntax:
command: param1=value1 param2=value2 param3=value3 paramN=valueN
command_ack: param1=value1

Example:
login_op: refno=1 username=myUserName password=myPassword
login_op_ack: ack_code=200 refno=1

 

Login command
Initiated by the SMS client.
Example -> login_op: refno=6 username=xxxx password=xxxx

Login acknowledge
Initiated by the SMS server.
Example -> login_op_ack: ack_code=200 refno=6

Sending SMS
Initiated by the SMS client.
Example -> sms_to_op: refno=7 sno=1963 msn=4791748750 pricegroup=0 msg=test srcoperator=0

Sending SMS - acknowledge
Initiated by the SMS server.
Example -> sms_to_op_ack: ack_code=200 refno=7

Receiving SMS
Initiated by the SMS server.
Example -> sms_from_op: msn=4791748750 msg=Test srcoperator=1 refno=230974

Receiving SMS - acknowledge
Initiated by the SMS client.
Example -> sms_from_op_ack: refno=230974

Receiving delivery reports
Initiated by the SMS server.
Example -> delivery_from_op: msgid=7 ok=True srcoperator=1 sentdate=16.03.2004%2020%3A38%3A50 errorcode=200 refno=1234

Receiving delivery reports - acknowledge
Initated by the SMS client
Example -> delivery_from_op_ack: refno=1234


Click to print




The technology is based on ViaNett Publishing
 Copyright ViaNett 2008

 Contact us