This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Information about API and responses
Guney Can Gokoglu edited this page Jun 21, 2015
·
5 revisions
Test api: http://api51.muhit.co
Live api: http://api1.muhit.co
iProxy: http://d1vwk06lzcci1w.cloudfront.net
All successfull API responses will return HTTP 200 header. All failed api calls will return the appropriate HTTP error headers and detailed error messages with response.msg object.
example:
Information about your request:
{
"url": "http://muhit-area51.elasticbeanstalk.com/auth/register",
"content_type": "application/json",
"http_code": 400,
"header_size": 556,
"request_size": 337,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 0.155278,
"namelookup_time": 0.005174,
"connect_time": 0.067752,
"pretransfer_time": 0.067806,
"size_upload": 134,
"size_download": 385,
"speed_download": 2479,
"speed_upload": 862,
"download_content_length": 385,
"upload_content_length": 134,
"starttransfer_time": 0.155241,
"redirect_time": 0,
"redirect_url": "",
"primary_ip": "54.72.96.215",
"certinfo": [],
"primary_port": 80,
"local_ip": "192.168.1.64",
"local_port": 57499
}
Response for your request:
{
"info": {
"request_time": "Sun, 24 May 2015 13:10:13 +0300",
"request_uri": "auth/register",
"request_url": "http://muhit-area51.elasticbeanstalk.com/auth/register",
"api_version": "0.1",
"response_time": 0
},
"msg": "Missing fields, last_name is required",
"data": {
"client_id": "1",
"client_secret": "1",
"email": "[email protected]",
"password": "",
"username": "gcg",
"first_name": "Guney Can"
}
}
## Image resizer a.k.a. iProxy
you can resize images on your requests via http(s)://{iproxy.url}/{Width}x{Height}/{imagefile}