1. ? ?
  2. PowerBuilder
  3. Monday, 6 March 2023 04:32 AM UTC

请问下

  Auth接口服务 怎样调用,用下面方法调用好像获取不到数据,是不是用别的方法,谢谢

Integer li_rc
String ls_string
HttpClient lnv_HttpClient
lnv_HttpClient = Create HttpClient
////获取Token
// Sends request using GET method
li_rc = lnv_HttpClient.SendRequest("GET", "https://*****/Token")
// Obtains the response data
if li_rc = 1 and lnv_HttpClient.GetResponseStatusCode() = 200 then
lnv_HttpClient.GetResponseBody(ls_string)
end if
destroy lnv_HttpClient
messagebox('', ls_string)

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 6 March 2023 07:32 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

I'm not an expert, but if you do a search on this Q&A forum with the word "token", you might find some helpful posts:

https://community.appeon.com/index.php/qna/q-a/search/dG9rZW4= 

regards

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.