Mynewsdesk technical documentation

XML structure

« Back to documentation

search - Search material

This is the XML structure of a search result. For each item in the search result, see documentation on XML structure for material.

<search_result>
  <summary>
    <nr_of_items>10</nr_of_items>
    <total_items>299</total_items>
    <limit>10</limit>
    <page>1</page>
    <page_count>30</page_count>
    <search_time>0.01845</search_time>
  </summary>
  <items>
    <item>
      ...
    </item>
    <item>
      ...
    </item>
  </items>
<search_result>

pressroom_info - View information on a pressroom

<pressroom>
  <id>432</id>
  <country code="se">Sverige</country>
  <source_name>Company name</source_name>
  <source_id>Company ID</source_id>
  <header>Pressroom header</header>
  <description>Pressroom description</description>
  <address>
    <street>123 Street</street>
    <postal_code>123 45</postal_code>
    <city>Stocksund</city>
  </address>
  <tag_cloud>
    <tag level="1">animi ducimus</tag>
    <tag level="2">animi repellat</tag>
    <tag level="3">aperiam quae</tag>
    <tag level="4">consectetur ut</tag>
    <tag level="5">cumque omnis</tag>
    <tag level="5">dolore sunt</tag>
    <tag level="2">ea officiis</tag>
  </tag_cloud>
  <logotype>
    <image size="small">URL for logotype, thumbnail</image>
    <image size="full">URL for logotype, full size</image>
  </logotype>
  <press_contacts>
    <contact>
      <name>John Smith</name>
      <title>CEO</title>
      <specialist>Administration</specialist>
      <phone>08-44332211</phone>
      <phone_alternative>08-11223344</phone_alternative>
      <email>john@company.com</email>
      <urls>
        <url type="blog">http://blog.mynewsdesk.com</url>
        <url type="micro_blog">http://twitter.com/mynewsdesk</url>
        <url type="social_network">http://www.facebook.com/mynewsdesk</url>
      </urls>
      <instant_messaging>
        <screen_name type="gtalk">demo@email.com</screen_name>
        <screen_name type="skype">demo</screen_name>
      </instant_messaging>
      <images>
        <image size="small">image of press contact, thumbnail</image>
        <image size="full">image of press contact, full size</image>
      </images>
    </contact>
  </press_contacts>
</pressroom>