Directories

From Advice Local Wiki
Revision as of 19:50, 15 December 2017 by Psu (talk | contribs) (Get all Directories)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Get all Directories

Returns a list of directories from the system.

API Endpoint

http://p.lssdev.com/directories

Example Request

GET /directories HTTP/1.1
Host: p.lssdev.com
x-api-token: YOUR_API_KEY
Content-Type: application/json

Example Response

{
    "status": 200,
    "success": true,
    "error": null,
    "data": [
        {
            "country": "US",
            "name": "Merchant Circle",
            "module": "merchantcircle",
            "website": "http://www.merchantcircle.com",
            "enabled": true,
            "frequency": "month",
            "frequencyInterval": 1,
            "pendingFrequency": "days",
            "pendingFrequencyInterval": 2,
            "foundFrequency": "month",
            "foundFrequencyInterval": 1,
            "successFrequency": "month",
            "successFrequencyInterval": 2,
            "createdAt": "2016-07-14T15:54:46.921Z",
            "updatedAt": "2016-07-14T15:54:46.921Z",
            "id": "5787b5c6b12268e525407213"
        },
        {
            "country": "US",
            "name": "Yelp",
            "module": "yelp",
            "website": "http://www.yelp.com",
            "enabled": true,
            "frequency": "month",
            "frequencyInterval": 1,
            "pendingFrequency": "days",
            "pendingFrequencyInterval": 2,
            "foundFrequency": "month",
            "foundFrequencyInterval": 1,
            "successFrequency": "month",
            "successFrequencyInterval": 2,
            "createdAt": "2016-07-14T15:54:47.322Z",
            "updatedAt": "2016-07-14T15:54:47.322Z",
            "id": "5787b5c7b12268e525407214"
        },
        {
            "country": "US",
            "name": "FourSquare",
            "module": "foursquare",
            "website": "http://www.foursquare.com",
            "enabled": true,
            "frequency": "month",
            "frequencyInterval": 1,
            "pendingFrequency": "days",
            "pendingFrequencyInterval": 2,
            "foundFrequency": "month",
            "foundFrequencyInterval": 1,
            "successFrequency": "month",
            "successFrequencyInterval": 2,
            "createdAt": "2016-07-14T15:54:47.688Z",
            "updatedAt": "2016-07-14T15:54:47.688Z",
            "id": "5787b5c7b12268e525407215"
        },
        {...},
        {...}
    ],
    "total": 154
}