1. Luis Pesaressi
  2. PowerBuilder
  3. Thursday, 15 October 2020 07:43 AM UTC

HI

I need send data to API in 

Authorization  ->  token = 'jdsdsdljkhdjhsj'

Headers -> X-country ='PE'

Body -> 

{
  "id": "144005999141",
  "type": "Cliente"
}

How can send this info

Thaks

Luis

Luis Pesaressi Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 20:51 PM UTC
  2. PowerBuilder
  3. # 1

is a  RESTFul

 

Thanks

Luis

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 15 October 2020 22:04 PM UTC
Are you using the RESTClient object to make the call? The RESTClient has built-in support for OAuth and JWT tokens (starting from PB 2019). https://docs.appeon.com/pb2019r2/objects_and_controls/ch02s87.html
  1. Helpful
  1. Luis Pesaressi
  2. Thursday, 15 October 2020 22:33 PM UTC
I know but I don't not understand how can make this



Thanks

Luis
  1. Helpful
There are no comments made yet.
Luis Pesaressi Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 18:50 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris

I need send data with POST 

I can get the token ok

but when I need send the data to API (POST) I don't know how fill all info

 

Authorization  ->  token = 'jdsdsdljkhdjhsj'

Headers -> X-country ='PE'

Body -> 

{
  "id": "144005999141",
  "type": "Cliente"
}

How can send this info

 

 

I send some Picture

PB_code -> return

PB_code_2 -> return 2

Authorization  info

Headers Info

Body Info

 

all work fine in Postman 

 

Thanks

Luis

 

 

Attachments (7)
Comment
  1. Chris Pollach @Appeon
  2. Thursday, 15 October 2020 20:06 PM UTC
Is this for dealing with a SOAP or a RESTFul based web service?
  1. Helpful
  1. Luis Pesaressi
  2. Thursday, 15 October 2020 20:53 PM UTC
is a RESTFul



Thanks

Luis
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 15:43 PM UTC
  2. PowerBuilder
  3. # 3

Hi Luis;

   What kind of API are you trying to deal with? We need a lot more detail in order to help.

Regards ... Chris

Comment
  1. Luis Pesaressi
  2. Thursday, 15 October 2020 22:32 PM UTC


is a RESTFul



thanks

Luis
  1. Helpful
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.