<?xml version="1.0" encoding="utf-8" ?>
<ignite version="1.0" source="omdbapi.com">
  <func name="lookup" endpoint="http://www.omdbapi.com/?" method="GET" format="JSON">
    <description>This function returns the movie details for a given title.</description>
    <example>
      =Ignite("omdbapi.com","lookup","Actors","The Wolf of Wall Street")
    </example>
    <inputs>
      <input name="r" type="config" value="json" />
      <input name="t" type ="input1"  displayName="title"/>
    </inputs>
    <outputs>
      <output name="Title" path="Title"/>
      <output name="Year" path="Year"/>
      <output name="Rated" path="Rated"/>
      <output name="Released" path="Released"/>
      <output name="Runtime" path="Runtime"/>
      <output name="Genre" path="Genre"/>
      <output name="Director" path="Director"/>
      <output name="Writer" path="Writer"/>
      <output name="Actors" path="Actors"/>
      <output name="Plot" path="Plot"/>
      <output name="Language" path="Language"/>
      <output name="Country" path="Country"/>
      <output name="Awards" path="Awards"/>
      <output name="Poster" path="Poster"/>
      <output name="Metascore" path="Metascore"/>
      <output name="imdbRating" path="imdbRating"/>
      <output name="imdbVotes" path="imdbVotes"/>
      <output name="imdbID" path="imdbID"/>
    </outputs>
  </func>

  <func name="lookup_imdb" endpoint="http://www.omdbapi.com/?" method="GET" format="JSON">
    <description>This function returns the movie details for a given IMDB ID.</description>
    <example>
      =Ignite("omdbapi.com","lookup_imdb","Actors","tt1285016")
    </example>
    <inputs>
      <input name="r" type="config" value="json" />
      <input name="i" type ="input1"  displayName="IMDb ID"/>
    </inputs>
    <outputs>
      <output name="Title" path="Title"/>
      <output name="Year" path="Year"/>
      <output name="Rated" path="Rated"/>
      <output name="Released" path="Released"/>
      <output name="Runtime" path="Runtime"/>
      <output name="Genre" path="Genre"/>
      <output name="Director" path="Director"/>
      <output name="Writer" path="Writer"/>
      <output name="Actors" path="Actors"/>
      <output name="Plot" path="Plot"/>
      <output name="Language" path="Language"/>
      <output name="Country" path="Country"/>
      <output name="Awards" path="Awards"/>
      <output name="Poster" path="Poster"/>
      <output name="Metascore" path="Metascore"/>
      <output name="imdbRating" path="imdbRating"/>
      <output name="imdbVotes" path="imdbVotes"/>
      <output name="imdbID" path="imdbID"/>
    </outputs>
  </func>

  <examples>
    <![CDATA[
<table border='1' class='ExcelTable2007'>
<tr><th class='heading'>&nbsp;</th><th>A</th><th>B (Forumla)</th><th>C (Output) </th></tr>
<tr><td class='heading' >1</td>
<td style="min-width:200px;">The Wolf of Wall Street</td>
<td style="min-width:400px;">=Ignite("omdbapi.com","lookup","Title",A1)</td>
<td>The Wolf of Wall Street</td>
</tr>
<tr><td class='heading' >2</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Year",A2)</td>
<td>2013</td>
</tr>
<tr><td class='heading' >3</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Rated",A3)</td>
<td>R</td>
</tr>
<tr><td class='heading' >4</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Released",A4)</td>
<td>2013-12-25 </td>
</tr>
<tr><td class='heading' >5</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Runtime",A5)</td>
<td>180 min </td>
</tr>
<tr><td class='heading' >6</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Genre",A6)</td>
<td>Biography, Comedy, Crime </td>
</tr>
<tr><td class='heading' >7</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Director",A7)</td>
<td>Martin Scorsese </td>
</tr>
<tr><td class='heading' >8</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Writer",A8)</td>
<td>Terence Winter (screenplay), Jordan Belfort (book) </td>
</tr>
<tr><td class='heading' >9</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Actors",A9)</td>
<td>Leonardo DiCaprio, Jonah Hill, Margot Robbie, Matthew McConaughey </td>
</tr>
<tr><td class='heading' >10</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Plot",A10)</td>
<td>Based on the true story of Jordan Belfort, from his rise to a wealthy stock-broker living the high life to his fall involving crime, corruption and the federal government.  </td>
</tr>
<tr><td class='heading' >11</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Language",A11)</td>
<td>English, French </td>
</tr>
<tr><td class='heading' >12</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Country",A12)</td>
<td>USA</td>
</tr>
<tr><td class='heading' >13</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Awards",A13)</td>
<td>Nominated for 5 Oscars. Another 33 wins & 97 nominations.  </td>
</tr>
<tr><td class='heading' >14</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Poster",A14)</td>
<td>http://ia.media-imdb.com/images/M/MV5BMjIxMjgxNTk0MF5BMl5BanBnXkFtZTgwNjIyOTg2MDE@._V1_SX300.jpg </td>
</tr>
<tr><td class='heading' >15</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","Metascore",A15)</td>
<td>75</td>
</tr>
<tr><td class='heading' >16</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","imdbRating",A16)</td>
<td>8.3</td>
</tr>
<tr><td class='heading' >17</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","imdbVotes",A17)</td>
<td>532,255 </td>
</tr>
<tr><td class='heading' >18</td>
<td>The Wolf of Wall Street</td>
<td>=Ignite("omdbapi.com","lookup","imdbID",A18)</td>
<td>tt0993846 </td>
</tr>


<tr><td class='heading' >19</td>
<td style="min-width:200px;">tt0387564</td>
<td style="min-width:400px;">=Ignite("omdbapi.com","lookup_imdb","Title",A19)</td>
<td>Saw</td>
</tr>
<tr><td class='heading' >20</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Year",A20)</td>
<td>2004</td>
</tr>
<tr><td class='heading' >21</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Rated",A21)</td>
<td>R</td>
</tr>
<tr><td class='heading' >22</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Released",A22)</td>
<td>29 Oct 2004</td>
</tr>
<tr><td class='heading' >23</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Runtime",A23)</td>
<td>103 min</td>
</tr>
<tr><td class='heading' >24</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Genre",A24)</td>
<td>Horror, Mystery</td>
</tr>
<tr><td class='heading' >25</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Director",A25)</td>
<td>James Wan</td>
</tr>
<tr><td class='heading' >26</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Writer",A26)</td>
<td>Leigh Whannell, James Wan (story), Leigh Whannell (story)</td>
</tr>
<tr><td class='heading' >27</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Actors",A27)</td>
<td>Leigh Whannell, Cary Elwes, Danny Glover, Ken Leung</td>
</tr>
<tr><td class='heading' >28</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Plot",A28)</td>
<td>Two men awaken in the secure lair of a killer who forces them to play a deadly game that will determine life or death.</td>
</tr>
<tr><td class='heading' >29</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Language",A29)</td>
<td>English</td>
</tr>
<tr><td class='heading' >30</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Country",A30)</td>
<td>USA, Australia</td>
</tr>
<tr><td class='heading' >31</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Awards",A31)</td>
<td>6 wins & 8 nominations.</td>
</tr>
<tr><td class='heading' >32</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Poster",A32)</td>
<td>http://ia.media-imdb.com/images/M/MV5BMjAyNTcxNzYwMV5BMl5BanBnXkFtZTgwMzQzNzM5MjE@._V1_SX300.jpg </td>
</tr>
<tr><td class='heading' >33</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","Metascore",A33)</td>
<td>46</td>
</tr>
<tr><td class='heading' >34</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","imdbRating",A34)</td>
<td>7.7</td>
</tr>
<tr><td class='heading' >35</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","imdbVotes",A35)</td>
<td>265333 </td>
</tr>
<tr><td class='heading' >36</td>
<td>tt0387564</td>
<td>=Ignite("omdbapi.com","lookup_imdb","imdbID",A36)</td>
<td>tt0993846 </td>
</tr>



</table>
      ]]>
  </examples>
</ignite>
