Table of Contents

new_api API

Host: sg02.picalike.copex-kunden.de

Port: 9093

Dependencies

git

Im git zu finden als:

$ git clone ssh://picalike@dev01.picalike.corpex-kunden.de/home/picalike/stephan/git/new_api

Allgemeines

Anfragen mit json als post

Antworten:

API

/available_status

in:

{"shop_apikey": <str>, "imgId": <str>}

out:

{"result": 1, "message": "OK", "response": {"available_status": <boolean>}}

/read_recobox_nouser

in:

{"shop_apikey": <str>, "box_id": <str>}

out:

{"result": 1, "message": "OK", "response": [{"userid": <str>, "shop_apikey": <str>, "box_id": <str>, "reco_type": (look|sim)<str>, "mode": (live|preview)<str>, "referrer": <boolean>, "only_if_unavailable": <boolean>, "box_name": <str>, "creation_time": <int>, "status": (active|deleted)<str>, "template": <str>, "regex": <str>}]}

Falls keine Recobox vorhanden ist, ist der Wert von response eine leerer Array. Der Wert von creation_time ist im Format “seconds since epoch”.