This method returns all problems based on the provided parameters.
URL
https://api.plupper.com/resources/problem?p=<adminUsername>
https://api.plupper.com/resources/problem/<id>
Formats
json
HTTP Method
GET
Requires Authentication
NO
API rate limited
No
Parameters
p:Required - Provider id = your admin username eg.john.lennon@plupper.com
Response
get all
["{\"summary\":\"Title of first problem\",\"reporter\":37990,\"id\":37991,\"created\":\"Thu Aug 27 18:05:54 UTC 2009\",\"status\":\"DONE\",\"description\":\"Big problem - Really BIG.\",\"votes\":13,\"uri\":\"http:\/\/www.plupper.com\/resources\/problem\/37991\"}",
"{\"summary\":\"Title of second problem\",\"reporter\":14851,\"id\":37006,\"created\":\"Mon Aug 24 21:55:15 UTC 2009\",\"status\":\"UNDER_REVIEW\",\"description\":\"Second BIG problem\",\"votes\":4,\"uri\":\"http:\/\/www.plupper.com\/resources\/problem\/37006\"}"]
get single
{"summary":"Title of problem","reporter":37990,"id":37991,"created":"Thu Aug 27 18:05:54 UTC 2009","status":"DONE","description":"yes, yes, this is worst problem i ever had.","votes":13,"uri":"http://www.plupper.com/resources/problem/37991"}"
Example queries
- Find all problems https://api.plupper.com/resources/problem?p=john.lennon@plupper.com
- Get problem with id=3456 https://api.plupper.com/resources/problem/3456
-
jQuery example
//get all $.getJSON( "https://api.plupper.com/resources/problem?p=john.lennon@plupper.com", function(data) { for(var i in data) { var json = eval('(' + data[i] + ')'); alert("Title: " + json.title); } }); //get single $.getJSON( "https://api.plupper.com/resources/problem/" + problemId, function(json) { alert("Title: " + json.title); });