The 4theFile API
- Perl Client Library reference implementation
The 4theFile API
GET /collections/:collectionkey/resources.format returns the list of resources in collection :collectionkey
curl -u user:apikey "https://4thefile.com/api_v1/collections/ESuVkqZF/resources.xml?page=1&per_page=10&tag=newtag"
<?xml version="1.0" encoding="UTF-8"?> <data> <next_page_link></next_page_link> <resource_count>2</resource_count> <resources> <resourcekey>zdV2nhbL</resourcekey> <collection_api_link>https://4thefile.com/api_v1/collections/ESuVkqZF.xml</collection_api_link> <collection_date>2010-06-02 14:18:20</collection_date> <collection_name>4theFile demo</collection_name> <collectionkey>ESuVkqZF</collectionkey> <counter>39</counter> <created>2010-06-02 14:18:20</created> <from_email>joe blow <jblow@purplewire.com></from_email> <message_from>joe blow <▆▆▆▆▆purplewire.com></message_from> <modified>2010-11-04 17:11:18</modified> <own>1</own> <resource_https_url>https://4theFile.com/zdV2nhbL</resource_https_url> <resource_url>http://4theFile.com/zdV2nhbL</resource_url> <retention>0</retention> <size>877</size> <subject>submissions are closed for this collection!</subject> <tags>newtag</tags> </resources> <resources> <resourcekey>UVlY0i71</resourcekey> <collection_api_link>https://4thefile.com/api_v1/collections/ESuVkqZF.xml</collection_api_link> <collection_date>2010-06-02 14:07:11</collection_date> <collection_name>4theFile demo</collection_name> <collectionkey>ESuVkqZF</collectionkey> <counter>2</counter> <created>2010-06-02 14:07:11</created> <from_email>joe blow <jblow@4theFile.com></from_email> <message_from>joe blow <jblow@4theFile.com></message_from> <modified>2010-11-05 10:17:35</modified> <own>1</own> <resource_https_url>https://4theFile.com/UVlY0i71</resource_https_url> <resource_url>http://4theFile.com/UVlY0i71</resource_url> <retention>0</retention> <size>205</size> <subject>Example 4theFile resource</subject> <tags>newtag,tag33</tags> </resources> </data>