First of all thanks for a great piece of software and api..
After the update I am having trouble fetching in JSON on the "old"
api.
Here is what I am trying to do:
McBuk:test slarsen$ wget http://api.collecta.com/search/?q=test&rpp=20&format=json
This fetches a file, but it is encoded as a atom feed instead of JSON.
Here is the top of the file:
?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns:opensearch="http://a9.com/-/spec/
opensearch/1.1/" xmlns="http://www.w3.org/2005/Atom">
<id>tag:api.collecta.com,2005:search/test</id>
<title>test - Collecta Search</title>
<link type="application/atom+xml" rel="self" href="http://
api.collecta.com/search?q=test&since_id=1269267282617" />
<link type="application/atom+xml" rel="refresh" href="http://
api.collecta.com/search?q=test&since_id=1269267282617" />
<link type="application/atom+xml" rel="after" href="http://
api.collecta.com/search?q=test&after_id=1269266812575" />
<opensearch:totalResults>15</opensearch:totalResults>
<opensearch:itemsPerPage>15</opensearch:itemsPerPage>
<updated>2010-03-22T14:14:42Z</updated>
The new API works perfect in wget..
-Cheers!
/Steffen
On 20 Mar., 15:15, Christopher Zorn <christopher.z...@gmail.com>
wrote:
To unsubscribe from this group, send email to collecta-developer+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.