API для работы в MainLink
API для работы в MainLink
seo
Для получения полного списка операций щелкните здесь.
LinkGet
LinkGet
получить ссылку по Id
вход: [id] #ссылки
выход: структура ссылки
Тест
Форма для тестирования доступна только для запросов от локальных компьютеров.SOAP 1.1
В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.
POST /seo.asmx HTTP/1.1
Host: api.mainlink.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.mainlink.ru/LinkGet"
<?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>
<LinkGet xmlns="http://api.mainlink.ru/">
<id>int</id>
</LinkGet>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<LinkGetResponse xmlns="http://api.mainlink.ru/">
<LinkGetResult>
<Id>int</Id>
<Anchor>string</Anchor>
<Comment>string</Comment>
<Expired>dateTime</Expired>
<Created>dateTime</Created>
<LastProlong>dateTime</LastProlong>
<Project>int</Project>
<Page>int</Page>
<Cy>int</Cy>
<Pr>int</Pr>
<YaCa>boolean</YaCa>
<OldCy>int</OldCy>
<OldPr>int</OldPr>
<Cost>double</Cost>
<Currency>Usd or Rur</Currency>
<Site>int</Site>
<PageSite>long</PageSite>
<PageSiteUri>string</PageSiteUri>
<Type>int</Type>
<Status>Unknown or Placed or Unmoderated or Archived or Wait or Sleep</Status>
<Indexed>int</Indexed>
<IndexedDate>string</IndexedDate>
<PageLevel>int</PageLevel>
</LinkGetResult>
</LinkGetResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
В следующем примере показаны запрос и ответ SOAP 1.2. Вместо элементов-заполнителей следует подставить фактические значения.
POST /seo.asmx HTTP/1.1
Host: api.mainlink.ru
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<LinkGet xmlns="http://api.mainlink.ru/">
<id>int</id>
</LinkGet>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<LinkGetResponse xmlns="http://api.mainlink.ru/">
<LinkGetResult>
<Id>int</Id>
<Anchor>string</Anchor>
<Comment>string</Comment>
<Expired>dateTime</Expired>
<Created>dateTime</Created>
<LastProlong>dateTime</LastProlong>
<Project>int</Project>
<Page>int</Page>
<Cy>int</Cy>
<Pr>int</Pr>
<YaCa>boolean</YaCa>
<OldCy>int</OldCy>
<OldPr>int</OldPr>
<Cost>double</Cost>
<Currency>Usd or Rur</Currency>
<Site>int</Site>
<PageSite>long</PageSite>
<PageSiteUri>string</PageSiteUri>
<Type>int</Type>
<Status>Unknown or Placed or Unmoderated or Archived or Wait or Sleep</Status>
<Indexed>int</Indexed>
<IndexedDate>string</IndexedDate>
<PageLevel>int</PageLevel>
</LinkGetResult>
</LinkGetResponse>
</soap12:Body>
</soap12:Envelope>
2005—2025 © MainLink.API