Lander

Pass your token to receive landers.

Parameter Description Format Default value
id lander ID int -
in_archive is it in the archive? 0 or 1 -
name lander name string -
url lander url string -
Lander list
curl -H "token: your_token" 'https://api.might.io/lander'

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": [ { "id": 1, "in_archive": 0, "name": "lander1", "url": "https://google.com" }, { "id": 2, "in_archive": 0, "name": "lander2", "url": "https://www.yahoo.com" }, ... ], }

Object description

Get lander by ID
curl -H "token: your_token" 'https://api.might.io/lander/your_lander_id'

Where:

  • your_lander_id - lander ID

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "id": 1, "in_archive": 0, "name": "lander1", "url": "https://google.com" }, }

Object description

Create lander
curl -H "token: your_token" -d 'your_request_body' -X POST 'https://api.might.io/lander'

Where:

  • your_request_body - lander JSON object
    { "name": "lander3", "url": "http://mysite.com", }
  • Parameters name, url is mandatory

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "id": 5, "in_archive": 0, "name": "lander3", "url": "http://mysite.com" }, }

Object description

Update lander
curl -H "token: your_token" -d 'your_request_body' -XPUT 'https://api.might.io/lander'

Where:

  • your_request_body - lander JSON object, which must contain an lander ID
    { "name": "new lander", "id": your_lander_id, }
  • your_lander_id - lander ID
  • Parameter ID is mandatory

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "id": 5, "in_archive": 0, "name": "new lander", "url": "http://mysite.com" }, }

Object description