The purpose of this document is to define the protocol for the CinchCast Web Service that the client application will interact with via HTTP PUT & GET requests to post new Cinch audio recordings, login users, etc.
The HTTP requests will include the following header fields:
User-Agent: [device_type]/[app_version] [deviceId]
(i.e.: iPhone/1.0 21790f560098113a8b6492407791cea0cb204719)
btr-method: [web service method name for the call being made]
(i.e.: CreateNewUserAccount, GetAlbumsForCinchFeed, etc.)
The body of the HTTP request will use the following format, with unique command xml based on the command type being requested:
<BlogTalkRadioRequest command=”[name of the command being requested]”
deviceId=”[unique identifier for current client device]”
sequence=”[unique sequence number from client]”>
<sessionId>
[the session id for the currently logged in user, or empty if there is not
a logged in user ]
</sessionId>
<accountId>
[the account id for the currently logged in user, or empty if there is not
a logged in user ]
</accountId>
[specific command xml]
</BlogTalkRadioRequest>
If a user is currently logged in, the client application will include the accountId and sessionId with the requests as documented above so that the web service can make determinations based on the current user account. If there is not a currently logged in user then the <accountId> and <sessionId> tags will be omitted.
The responses from the server will use the following format, with unique command xml based on the command type that was requested:
<BlogTalkRadioResponse command=”[name of the command that was requested]”
sequence=”[unique sequence number from client request]”>
<success>
[1 or 0 depending on whether the command was successful or not]
</success>
<Errors>
<error>
<code></code>
<message>
[any error message to display to the user if this command failed]
</message>
</error>
...
</Errors>
[specific command xml]
</BlogTalkRadioResponse>
Every user account that is created starts out with a single Cinch Feed. A Cinch Feed can contain Cinch Recordings as well as child Cinch Feeds that can be referred to as Albums.
Users can post recordings to their Cinch Feed(s) and/or create Albums underneath their Cinch Feed(s). Each Album can be specified as public or private.
Searching can be used to search for Cinch Feeds that match a search criteria, or specific Cinch Recordings that match a search criteria.
The specific command types and their xml are defined below:
Back to Top