API PRO Tools Get Roots

/get_roots
Retrieves the root codes a given user currently owns.

Gateway:

http://www.tmsfactory.com/api/pro/tools/get_roots/

Returns:


 * A structured list of root code details containing:


 * 1) root - The root code.
 * 2) date_purchased - DD.MM.YYYY Date of purchase.
 * 3) date_expires - DD.MM.YYYY Expiration date of root code.
 * 4) country - Structured array of countries the root is usable in.
 * e.g. {"root":"BRS","date_purchased":"28.06.2010","date_expires":"28.06.2011","country":[{"country_id":"PH"},{"country_id":"US"}]}

Requires:

N/A

Parameters:
 * xml
 * Type: String


 * Required: YES

The following parameters must be enclosed inside the   tags:

Example
Call: http://www.tmsfactory.com/api/pro/tools/get_roots/?xml 1zfk7b0668ddj0mnhf7hxngd3sxkbny</session_id&gt

Response:

{"errors":[],"data":[{"root":"BRS","date_purchased":"28.06.2010", "date_expires":"28.06.2011","country":[{"country_id":"PH"}, {"country_id":"US"}]}],"warnings":[]}