Изменения

Перейти к: навигация, поиск

API Documentation

332 байта добавлено, 15:23, 29 июля 2021
м
Generation of short links
*'''status''' — order status.
== Generation of short links URL Shortener ==
In some casesSometimes, for you might want to use short links to client account. For instance, when using them in sending an SMS, the use of short links to member area may be requiredrecipient.
For doing that it is necessary to To get a short URL, send a query containing request with a full link to which a response containing a hash code URL. Hash value for a short link will be sentis returned.
'''The example of a query for short links generation:Request Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
</source>
'''shortlink''' is a root container. Required.*'''link''' is a full — long link for generation of which a code should be obtainedto shorten. Required. If '''short''' attribute equals value is '''1''', then a response won`t contain XML but the return contains only a hash code, no XML.
'''The example of a response to the query for short links generation:Response Example'''
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
</source>
*'''hash''' is a — URL hash code of a short link.
Further on the following link to member area can be usedUse it as client account URL:
<nowiki>https://home.courierexe.ru/35AF350C or curie.ru/35AF350C</nowiki> '''Note'''. URL shortener is only for MeaSoft company sites. == Recipient Rating Check == The check is available only for the Maximum personal account plan. '''Request Example''' <source lang="xml"><?xml version="1.0" encoding="UTF-8" ?><mcheck> <auth extra="8" login="login" pass="pass" /> <phones> <phone>89161147992</phone> </phones></mcheck></source> '''Response Example''' <source lang="xml"><?xml version="1.0" encoding="UTF-8" ?><mcheck> <phones> <phone rate="90">89161147992</phone> </phones></mcheck></source>

Навигация