Hi Gurus,
I am using PowerBuilder 2019 R2 classic. I am not aware with Rest API calling in PowerBuilder .
Below is the example of HTTP request.:-
Request URL: https://api.incontact.com/InContactAuthorizationServer/Token Request Method: POST Request Headers: POST /InContactAuthorizationServer/Token HTTP/1.1 Host: api.incontact.com Connection: keep-alive Content-Length: 65 Origin: http://myapp.example.com Authorization: basic H6CwZTJfYaWKnZDeAV2lkZS5o2V7U0c4lgIy5jb2675B6+MTIzNDdfgd9786dg/0hdUfyhuDFHDA2= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Content-Type: application/json; charset=UTF-8 Accept: application/json, text/javascript, */*; q=0.01 Referer: http://myapp.example.com/mainPage Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Request Payload: { "grant_type" : "client_credentials", "scope" : "PatronAPI" }
Please help.