XML Documentation
To access a table through XML you must first add the table as a CMP (Content Management
Page). This will make the table public. It should be noted therefore that data in this
table can be accessed by the general public. No authentication is made on CMPs.
To connect to the CMP through XML you must connect to http(s)://(secure.)migr8.com/xml/
Variable Table
The following variables are accepted through XML. Variables can be sent using GET or POST.
Variable |
Required |
Description |
cmp_id |
Y |
Your CMP table ID found in the CMS |
[Table Field] |
Y |
Table Fields sent with the query values. Queries use AND logic. e.g. exchange=London |
orderby |
N |
Field that you wish the results to be ordered by, can include ASC
|| DESC. |
limit |
N |
The maximum number of records you want returning. |
offset |
N |
The starting point of the returned records. |
return |
N |
Fields to be returned, no value will return all. |
An example query:
http://migr8.com/xml/?cmp_id=a1892738&Town=Manchester&Code=0161&orderby=Town%20ASC&limit=1&offset=
|