Most API requests will use GET. If the specific documentation requires POST, see the section on Post service construction below.
All search request URLs start with the hostname and resemble the following sample:
http://api.digitalpodcast.com
After the hostname are the service name and version number:
/v2r/
Next is the method followed by a question mark.
search/?
Those components form the base URL.
http://api.digitalpodcast.com/v2r/search/?
This base URL is followed by the actual query parameters, which take the form argument=value, where the arguments and values are URL encoded. Multiple parameters are separated by an ampersand. Spaces between words require a %20 to indicate spaces. The following example searches the database files for the term rock and roll:
http://api.digitalpodcast.com/v2r/search/?appid=podcastsearchdemo&keywords=rock%20and%20roll
The api docmentation provides details on api parameters.
Using POST to communicate with the API is very similar to using GET. All search request URLs still begin with the hostname, service name, version number and method:
http://api.digitalpodcast.com/v2r/search/
Note that there is no question mark following the method.
The query parameters are passed in the POST data block. They still take the form argument=value and are properly url encoded. Multiple parameters are separated by an ampersand (&).
appid=podcastsearchdemo&keywords=rock%20and%20roll
Copyright © 2006-2012 Digital Podcast. All rights reserved.