api
/api/account/data_sources
November 13, 2008 4:06 PM
This returns a list of all the Data Sources you have access to.

authentication is required

params:
return This value specifies how you would like the response sent back (either a success message or an error message).

Possible Values:
  • xml (Default) an xml feed
  • json returns the feed in JSON format
input_type_id Setting this param will limit the returned Data Sources to ones that accept the given input type.
Example:
input_type_id=31 would return a list of Data Sources that accept input type of 'Zipcode'


Example:
http://www.trendrr.com/api/account/data_sources?auth={authentication}

<?xml version="1.0" encoding="UTF-8"?>

<result>
  <dataSources>
    <dataSource>
      <id>87</id>
      <name>Amazon Product Price</name>
      <description>Price of a specific item on amazon.com</description>
      <inputType>
        <id>2</id>
        <name>Amazon ASIN</name>
        <input1Label>ASIN</input1Label>
      </inputType>
    </dataSource>

    ...

    <dataSource>
      <id>63</id>
      <name>YouTube Video Stats</name>
      <description>Total number of views, views per day, number of comments, and number of times favorited for a specific video on youtube.com</description>
      <inputType>
        <id>7</id>
        <name>YouTube Video URL</name>
        <description>Please enter a valid youtube video URL.</description>
        <input1Label>YouTube Video</input1Label>
      </inputType>
    </dataSource>
    <dataSource>
      <id>42</id>
      <name>YouTube Videos</name>
      <description>Number of Videos on YouTube</description>
      <inputType>
        <id>3</id>
        <name>Query Search</name>
        <description>Please enter a Search Query.  You may structure the query in the standard way you would for a search engine.  i.e. use quotes to search for exact matches.  Case does not matter.</description>
        <input1Label>Query</input1Label>
      </inputType>
    </dataSource>
  </dataSources>
  <resultCode>1</resultCode>
  <resultMessage>Successfully processed request</resultMessage>

</result>