Search found 225 matches

by jonboy49
Tue Sep 17, 2024 8:44 pm
Forum: YAJL-ILE
Topic: YAJL upgrade - Recompile needed?
Replies: 2
Views: 283

Re: YAJL upgrade - Recompile needed?

I can see no reason why you would have to recompile. The Service Program signature will be the same.

I have never had any problems with upgrading YAJL - or indeed any of Scott's software.
by jonboy49
Tue Sep 17, 2024 5:35 pm
Forum: General
Topic: Packed field containing char
Replies: 1
Views: 253

Re: Packed field containing char

Well comp-4 is binary - so why the RPG used char instead of B(inary) is anybody's guess. But before we can answer the question we need to know what are you trying to retrieve. Do you want to access the original numeric value? The RPG char data? And what are you going to do with it In the case of the...
by jonboy49
Thu Aug 01, 2024 5:19 pm
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 9262

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

You should ask stamps.com if they offer a server to server OAUTH option. I encountered similar problems to yours with Zoom but once I discovered the server option it was trivial. The interface you are using is intended for browsers - not really for system to system. See if they offer that option. If...
by jonboy49
Thu Aug 01, 2024 5:18 pm
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 9262

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

You should ask stamps.com if they offer a server to server OAUTH option. I encountered similar problems to yours with Zoom but once I discovered the server option it was trivial. The interface you are using is intended for browsers - not really for system to system. See if they offer that option. If...
by jonboy49
Tue Jul 23, 2024 4:18 pm
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 9262

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

I use HTTPAPI for OAUTH2 authentication with the Zoom APIs and it works fine. Have you checked this thread? https://www.scottklement.com/forums/viewtopic.php?t=439 There are others on the topic as well if you search for OAUTH. The process is basically: Make a call to the OAUTH token generation API U...
by jonboy49
Wed Jul 10, 2024 4:53 pm
Forum: HTTPAPI
Topic: API call with Headers
Replies: 14
Views: 6300

Re: API call with Headers

Why are you building the headers like that? HTTPAPI builds the headers for you so the resulting data you are sending to the server will be a mess. The data you are sending is already built-into the URL you are passing. You didn't duplicate the request data in the Postman example did you? I doubt it....
by jonboy49
Wed Jul 03, 2024 9:40 pm
Forum: HTTPAPI
Topic: Google API json response is unable to be pulled into rpgle data structure using DATA-INTO (Status Code 00356)
Replies: 4
Views: 11028

Re: Google API json response is unable to be pulled into rpgle data structure using DATA-INTO (Status Code 00356)

First of all congratulations on joining the club! OK - your two basic problems which are fairly simple to handle. You may have others but ... First, DATA-INTO needs to match elements by name and hierarchy. And "by name" includes the case in which the name is written. Now you may think that...
by jonboy49
Mon Jun 17, 2024 11:12 am
Forum: YAJL-ILE
Topic: DATA-INTO - ERROR RNQ0356
Replies: 2
Views: 2829

Re: DATA-INTO - ERROR RNQ0356

I’m viewing this on my phone so I may be misreading it but… This is the type of json I hate because it is an array of elements but each element has a different name. Unless you know all the possible names it is tough to do with Date-Into - and even then it would be messy. You might be better off usi...
by jonboy49
Wed Jun 05, 2024 12:44 pm
Forum: HTTPAPI
Topic: Creating a url_head routine
Replies: 3
Views: 3024

Re: Creating a url_head routine

Have you tried HTTP_req() ? It is not method specific.
by jonboy49
Fri May 31, 2024 8:15 am
Forum: HTTPAPI
Topic: How to set "Authorization" in http header
Replies: 7
Views: 5630

Re: How to set "Authorization" in http header

Thanks - I looked at that first but there was no description so I looked briefly at the code and more seemed to be going on than just simply copying a value in. Guess I should have tried it but I was in a hurry.