Request format. Currently only REST requests are supported.
Response formats. Currently JSON and XML response formats are supported. You may choose the response format by passing the "output" parameter with a value of either "xml" or "json". If no output parameter is passed the response defaults to JSON.
The output can be decoded into a more readable format by adding a "debug=1" parameter to any request. This will cause the formatted output to be reinterpreted and displayed as a native type in a readable format -- especially useful in interpreting JSON output. The use of the "debug=1" parameter is highly encouraged, as opposed to detailed documentation describing the output of the API requests. The API is still evolving, and it cannot be guaranteed that such detailed documentation will be continuously updated.
Example 1.2. Response without debug parameter
https://shop.mp3tunes.com/api/v0/login
{"status":0,"session_id":null,"errorMessage":"The provided email address is not properly formatted"}
Example 1.3. Response with debug parameter
https://shop.mp3tunes.com/api/v0/login?debug=1
{"status":0,"session_id":null,"errorMessage":"The provided email address is not properly formatted"}
object(ObjectFromJSON)#7 (3) { ["status"]=> int(0) ["session_id"]=> NULL ["errorMessage"]=> string(52) "The provided email address is not properly formatted" }