API для работы в MainLink

seo

Для получения полного списка операций щелкните здесь.

LinksGet

LinksGet
получить размещенные ссылки по странице
вход: [page] #страницы
выход: [массив] массив ссылок

Тест

Форма для тестирования доступна только для запросов от локальных компьютеров.

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/LinksGet"

<?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>
    <LinksGet xmlns="http://api.mainlink.ru/">
      <page>int</page>
    </LinksGet>
  </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>
    <LinksGetResponse xmlns="http://api.mainlink.ru/">
      <LinksGetResult>
        <Link>
          <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>
        </Link>
        <Link>
          <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>
        </Link>
      </LinksGetResult>
    </LinksGetResponse>
  </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>
    <LinksGet xmlns="http://api.mainlink.ru/">
      <page>int</page>
    </LinksGet>
  </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>
    <LinksGetResponse xmlns="http://api.mainlink.ru/">
      <LinksGetResult>
        <Link>
          <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>
        </Link>
        <Link>
          <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>
        </Link>
      </LinksGetResult>
    </LinksGetResponse>
  </soap12:Body>
</soap12:Envelope>