[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Using Request - REST

Status
Not open for further replies.
P

Peter Judge

Guest
I would try to get the 11.6.4 procedure libraries if you can. In general, get to 11.6.4 since it's the latest 11.6x service pack. To read the response, look at the Entity property on the response object. If it's JSON you can cast it to a JsonObject and work with it there. There are some examples of using the HTTP client that may help, at github.com/.../http_client . Working with JsonObjects is quite simple but quite verbose - you end up using a lot of intermediary variables. So for this oJson:Add('filter', new JsonObject()). oJson = new JsonObject(). oJson:Add('date1', new JsonObject()). oJson = new JsonObject(). oJson:Add('date2', new JsonObject()). oJson = new JsonObject(). you can rewrite it def var filterJson as JsonObject. filterJson = new JsonObject(). oJson:Add('filter', filterJson). filterJson:AddNull('date1'). filterJson:AddNull('date2'). filterJson:Add('activityId', 0). // etc

Continue reading...
 
Status
Not open for further replies.
Top