This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
covers:api [2011/06/30 08:17] jposeika [Output] |
covers:api [2020/08/19 12:44] (current) jposeika |
||
---|---|---|---|
Line 8: | Line 8: | ||
* URL for JSON output: https://content.chilifresh.com/api/json/ | * URL for JSON output: https://content.chilifresh.com/api/json/ | ||
* Method: GET | * Method: GET | ||
+ | * Available both over plain HTTP and SSL | ||
==== Parameters ==== | ==== Parameters ==== | ||
|**Parameter**|**Type (size)**|**Mandatory**|**Description**| | |**Parameter**|**Type (size)**|**Mandatory**|**Description**| | ||
Line 29: | Line 29: | ||
|response|medium_cover_exists|1 or 0 |If //size// parameter is "M" or empty |1 if medium cover exists, 0 if not | | |response|medium_cover_exists|1 or 0 |If //size// parameter is "M" or empty |1 if medium cover exists, 0 if not | | ||
|response|medium_cover_url|URL |If //medium_cover_exists// is 1, this parameter includes displays cover URL|If //medium_cover_exists// is 1, this parameter includes displays cover URL| | |response|medium_cover_url|URL |If //medium_cover_exists// is 1, this parameter includes displays cover URL|If //medium_cover_exists// is 1, this parameter includes displays cover URL| | ||
- | |response|large_cover_exists|1 or 0|If //size// parameter is "L" or empty|1 if large cover exists, 0 if not| | + | |response|large_cover_exists|1 or 0 |If //size// parameter is "L" or empty|1 if large cover exists, 0 if not | |
- | |response|large_cover_url|URL |If //large_cover_exists// is 1, this parameter includes displays cover URL|If //large_cover_exists// is 1, this parameter includes displays cover URL| | + | |response|large_cover_url |URL |If //large_cover_exists// is 1, this parameter includes displays cover URL |If //large_cover_exists// is 1, this parameter includes displays cover URL | |
|**Block //response// ends**| | | | | | |**Block //response// ends**| | | | | | ||
**XML input example:** | **XML input example:** | ||
<code> | <code> | ||
- | http://content.chilifresh.com/api/?isbn=9780578033440&size=L | + | https://content.chilifresh.com/api/?isbn=9780578033440&size=L |
</code> | </code> | ||
Line 46: | Line 46: | ||
<item_id>9780578033440</item_id> | <item_id>9780578033440</item_id> | ||
<small_cover_exists>1</small_cover_exists> | <small_cover_exists>1</small_cover_exists> | ||
- | <small_cover_url>http://content.chilifresh.com/?isbn=9780578033440&size=S</small_cover_url> | + | <small_cover_url>https://content.chilifresh.com/?isbn=9780578033440&size=S</small_cover_url> |
<medium_cover_exists>1</medium_cover_exists> | <medium_cover_exists>1</medium_cover_exists> | ||
- | <medium_cover_url>http://content.chilifresh.com/?isbn=9780578033440&size=M</medium_cover_url> | + | <medium_cover_url>https://content.chilifresh.com/?isbn=9780578033440&size=M</medium_cover_url> |
<large_cover_exists>1</large_cover_exists> | <large_cover_exists>1</large_cover_exists> | ||
- | <large_cover_url>http://content.chilifresh.com/?isbn=9780578033440&size=L</large_cover_url> | + | <large_cover_url>https://content.chilifresh.com/?isbn=9780578033440&size=L</large_cover_url> |
</response> | </response> | ||
</code> | </code> | ||
Line 57: | Line 57: | ||
**JSON input example:** | **JSON input example:** | ||
<code> | <code> | ||
- | http://content.chilifresh.com/api/json/?isbn=9780578033440&size=L | + | https://content.chilifresh.com/api/json/?isbn=9780578033440&size=L |
</code> | </code> | ||
Line 68: | Line 68: | ||
"response_time":"Thu, 30 Jun 2011 08:05:30 -0500", | "response_time":"Thu, 30 Jun 2011 08:05:30 -0500", | ||
"item_id":"9780578033440","small_cover_exists":"1", | "item_id":"9780578033440","small_cover_exists":"1", | ||
- | "small_cover_url":"http:\/\/content.chilifresh.com\/?isbn=9780578033440&size=S", | + | "small_cover_url":"https:\/\/content.chilifresh.com\/?isbn=9780578033440&size=S", |
"medium_cover_exists":"1", | "medium_cover_exists":"1", | ||
- | "medium_cover_url":"http:\/\/content.chilifresh.com\/?isbn=9780578033440&size=M", | + | "medium_cover_url":"https:\/\/content.chilifresh.com\/?isbn=9780578033440&size=M", |
"large_cover_exists":"1", | "large_cover_exists":"1", | ||
- | "large_cover_url":"http:\/\/content.chilifresh.com\/?isbn=9780578033440&size=L" | + | "large_cover_url":"https:\/\/content.chilifresh.com\/?isbn=9780578033440&size=L" |
} | } | ||
} | } | ||
</code> | </code> |