- Samuel Sanchez Avila
- PowerBuilder
- Wednesday, 8 January 2020 06:54 PM UTC
In PowerBuilder 2019, the way to connect a Rest-Api is with this:
Application Window--
client= CREATE RESTClient
client.SetRequestHeader("Content-Type","application/json")
client.SetRequestHeader("Accept-Encoding","gzip")
Function Window--
String ls_C019_ResPonse
RestClient lrc_C019
lrc_C019 = Create RestClient
//Connect to RestApi
lrc_C019.SendGetRequest('http://localhost:8080/api/'+api_data, ls_C019_ResPonse)
//Returned Info:
Messagebox("",ls_C019_ResPonse)
Is there a way to connect my Rest-Api, or something like this, using PB 2017 R3?
--PB 2017 mark error in: lrc_C019.SendGetRequest( , )
Thanks.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.