[progress Communities] [progress Openedge Abl] Forum Post: Re: Rest Services With Classic...

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Don't get hung up on the PASOE URI - you can call any HTTP or HTTPS uri. From that talk, some sample code for getting to a 'card shuffle' website. def var oClient as IHttpClient. def var oRequest as IHttpRequest. def var oResponse as IHttpResponse. def var oURI as URI. def var oBody as JsonObject. oClient = ClientBuilder:Build():Client. oURI = new URI(string(UriSchemeEnum:http), 'cardshuffle.net'). oURI:Path = 'shuffle'. oURI:AddQuery('players', string(4)). oURI:AddQuery('handSize', string(5)). oURI:AddQuery('numDecks', string(1)). oRequest = RequestBuilder:Get(oURI) :AcceptJson() :Request. oResponse = oClient:Execute(oRequest).

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