Skip to content

Instantly share code, notes, and snippets.

@lifeamit
Last active October 25, 2015 05:44
Show Gist options
  • Save lifeamit/5a7e84fb321cfda5be96 to your computer and use it in GitHub Desktop.
Save lifeamit/5a7e84fb321cfda5be96 to your computer and use it in GitHub Desktop.
reseller api response POST and GET responses
POST REQUEST
POST / http://demo.birdeye.com/papi/business/19653/pricingtier
{"discountType":"tier",
"minSubscriptionQuantity": 1,
"messages":[
{"startQty":1, "endQty":5, "pricePerUnit":100},
{"startQty":6, "endQty":10, "pricePerUnit":100},
{"startQty":11, "endQty":50, "pricePerUnit":80},
{"startQty":51, "endQty":100, "pricePerUnit":50}
]
}
Response:
{
"response": {
"error": ""
},
"status": 200,
"url": "http://demo.birdeye.com:8080/resources/v1/business/19653/pricingtier",
"method": "POST",
"debug": {
"error": null,
"info": {
"url": "http://demo.birdeye.com:8080/resources/v1/business/19653/pricingtier",
"content_type": "application/json",
"http_code": 200,
"header_size": 466,
"request_size": 471,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 0.005555,
"namelookup_time": 0.000675,
"connect_time": 0.001261,
"pretransfer_time": 0.001318,
"size_upload": 286,
"size_download": 0,
"speed_download": 0,
"speed_upload": 51485,
"download_content_length": 0,
"upload_content_length": 286,
"starttransfer_time": 0.005523,
"redirect_time": 0,
"certinfo": [],
"primary_ip": "54.215.1.164",
"primary_port": 8080,
"local_ip": "10.171.142.97",
"local_port": 41050,
"redirect_url": "",
"request_header": "POST /resources/v1/business/19653/pricingtier HTTP/1.1\r\nHost: demo.birdeye.com:8080\r\nContent-Type: application/json\r\nAccept: application/json\r\nContent-Length: 286\r\nConnection: close\r\n\r\n"
}
}
}
======================================================================
GET REQUEST
GET / http://demo.birdeye.com/papi/business/19653/pricingtier
Response:
{
"response": {
"discountType": null,
"minSubscriptionQuantity": null,
"messages": []
},
"status": 200,
"url": "http://demo.birdeye.com:8080/resources/v1/business/19653/pricingtier",
"method": "GET",
"debug": {
"error": null,
"info": {
"url": "http://demo.birdeye.com:8080/resources/v1/business/19653/pricingtier",
"content_type": "application/json",
"http_code": 200,
"header_size": 456,
"request_size": 144,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 0.005089,
"namelookup_time": 0.000657,
"connect_time": 0.001204,
"pretransfer_time": 0.001255,
"size_upload": 0,
"size_download": 66,
"speed_download": 12969,
"speed_upload": 0,
"download_content_length": -1,
"upload_content_length": 0,
"starttransfer_time": 0.005049,
"redirect_time": 0,
"certinfo": [],
"primary_ip": "54.215.1.164",
"primary_port": 8080,
"local_ip": "10.171.142.97",
"local_port": 41053,
"redirect_url": "",
"request_header": "GET /resources/v1/business/19653/pricingtier HTTP/1.1\r\nHost: demo.birdeye.com:8080\r\nContent-Type: application/json\r\nAccept: application/json\r\n\r\n"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment