en
Deutsch Deutsch English English
You are not logged in. Please log in now.
 
 
Forgot password |  Send registration mail again |  Create account

    Twick.it-Blog

    find_topic

    Markus Möller

    URL:

    http://twick.it/interfaces/api/find_topic.xml

    http://twick.it/interfaces/api/find_topic.json

    Function:

    Retrieves all topics which includes a given search term. Only the topic's title is searched for the search term not the Twicks.

    Parameters:

    Optional/required Values Default Description
    search required String Search term that should be included in the topic.
    limit optional Integer > 0 1 Number of Twicks that should be returned.
    lng optional "de", "en" preferred browser language Language in which should be searched

    Output(XML):

    http://twick.it/interfaces/api/find_topic.xml?search=Homer

    <?xml version="1.0" encoding="utf-8"?>
    <result>
      <query>type=xml&search=Homer</query>
      <topics>
        <topic>
          <id>307</id>
          <title>Homer</title>
          <url>http://twick.it/de/Homer</url>
          <tags>
            <tag count="2">dichter</tag>
            <tag count="1">odyssee</tag>
            <tag count="1">ilias</tag>
            <tag count="1">erster</tag>
            <tag count="1">autor</tag>
            <tag count="1">abendlandes</tag>
          </tags>
          <geo>
            <latitude></latitude>
            <longitude></longitude>
          </geo>
        </topic>
        <topic>
          <id>295</id>
          <title>Homer Simpson</title>
          <url>http://twick.it/de/Homer-Simpson</url>
          <tags>
            <tag count="2">simpsons</tag>
            <tag count="2">us</tag>
            <tag count="1">dicker</tag>
            <tag count="1">serie</tag>
            <tag count="1">zeichentrick</tag>
            <tag count="1">figur</tag>
            <tag count="1">rüpel</tag>
            <tag count="1">isst</tag>
            <tag count="1">gerne</tag>
            <tag count="1">lustige</tag>
          </tags>
          <geo>
            <latitude></latitude>
            <longitude></longitude>
          </geo>
        </topic>
      </topics>
    </result>

    Output (JSON):

    http://twick.it/interfaces/api/find_topic.json?search=Homer

    {
      "query" : "type=json&search=Homer",
      "topics" : [
        {
          "id" : "307",
          "title" : "Homer",
          "url" : "http://twick.it/de/Homer",
          "tags" : [
            {
              "tag" : "dichter",
              "count" : "2"
            },
            {
              "tag" : "odyssee",
              "count" : "1"
            },
            {
              "tag" : "ilias",
              "count" : "1"
            },
            {
              "tag" : "erster",
              "count" : "1"
            },
            {
              "tag" : "autor",
              "count" : "1"
            },
            {
              "tag" : "abendlandes",
              "count" : "1"
            }
          ],
          "geo" : {
              "latitude" :  "",
              "longitude"  : ""
          },
        },
        {
          "id" : "295",
          "title" : "Homer Simpson",
          "url" : "http://twick.it/de/Homer-Simpson",
          "tags" : [
            {
              "tag" : "simpsons",
              "count" : "2"
            },
            {
              "tag" : "us",
              "count" : "2"
            },
            {
              "tag" : "dicker",
              "count" : "1"
            },
            {
              "tag" : "serie",
              "count" : "1"
            },
            {
              "tag" : "zeichentrick",
              "count" : "1"
            },
            {
              "tag" : "figur",
              "count" : "1"
            },
            {
              "tag" : "rüpel",
              "count" : "1"
            },
            {
              "tag" : "isst",
              "count" : "1"
            },
            {
              "tag" : "gerne",
              "count" : "1"
            },
            {
              "tag" : "lustige",
              "count" : "1"
            }
          ],
          "geo" : {
              "latitude" :  "",
              "longitude"  : ""
          },
        }
      ]
    }


    Created at 11.11.2009 | Comments (0)

    No Comments


    Leave a comment

     
     

    Submit Comment
     

    Categories:

    • General
    • Official
    • Tips4Twicks

    Pages:

    • FAQ
    • Concept
    • Charter
    • Terms
    • Article overview
    • Press
    • Press reviews
    • Photos
    • For developers / API
    • REST-API
    • explain
    • favorites
    • find_topic_by_tag
    • find_topic
    • find_topics_nearby
    • find_twick
    • find_twicks_from_user
    • find_user
    • latest_twicks
    • random_twick
    • random_topic
    • search_twick
    • PHP
    • Twitter
    • Imprint

    Search:


    Search

    Comments:

    • Cowboy: Long time since I heard that one.
    • Helen Ryan: Smarty Pants Andy Pandy ...

    Tag-Cloud

    140 characters augmented reality awards CeBIT competition concept definitions encyclopaedia explanations information theory knowledge microblogging press social glossary Tool Tip Twitter Twittwoch Webciety Wikipedia Wikitude

    WP-Cumulus by Roy Tanck and Luke Morton requires Flash Player 9 or better.

    2D

    140 characters augmented reality awards CeBIT competition concept definitions encyclopaedia explanations information theory knowledge microblogging press social glossary Tool Tip Twitter Twittwoch Webciety Wikipedia Wikitude
    3D

    RSS

    • Blog posts
    • Comments
    Tweet

    No responsibility is taken for the correctness of this information. Creative Commons License

    > FAQ > Charta

    > API documentation > Tops4Twicks

    > Twitter > Support

    > Terms > Imprint

    > Press > Mobile website