Table of content
Business directories API
List of regions
Request format
GET /trustlinks/regionsResult
If successful, the server returns a list of available regions in the following format:
Response example
{
10: “Australia”,
23: “Brasil”,
32: “Canada”,
57: “France”,
61: “Germany”,
77: “Ireland”,
80: “Italy”,
120: “Netherlands”,
121: “New Zealand”,
155: “Singapore”,
159: “South Africa”,
160: “Spain”,
180: “United Kingdom”,
182: “USA”
}List of links
Description
The server returns a list of links.
Request format
GET /trustlinks/{site_id}Request parameters
| Name | Required | Description |
| site_id | Yes | Website ID |
Result
If successful, the server returns a list of links.
Example
[
{
“id”: “19”,
“url”: “http://www.2findlocal.com/”,
“title”: “2FindLocal”,
“comment”: “To submit your business to 2FindLocal, all you need to do is select the blue “Submit your business” button located on the right side of the page, near the middle. “,
“is_marked”: “1”
},
…
]Response parameters
| Name | Description |
| id | URL ID |
| url | URL |
| title | Name |
| comment | Brief summary |
| is_marked | Status |
Setting a link status
Request format
PUT /trustlinks/{site_id}/link/{link_id}
{
“is_marked”: true
}Request parameters
| Name | Required | Description |
| link_id | Yes | Link ID |
| is_marked | Yes | True-completed |
Result
If successful, the server returns the 200 HTTP code.