List of regions

List of regions

Request format

GET /trustlinks/regions

Result

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}?region_id=1

Request parameters

Name Required Description
site_id Yes IWebsite ID
region_id No Region ID. If not specified or if the value is 0, general directories are returned

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.

By continuing to use this site you consent to the use of cookies in accordance with our Cookie policy. close notification