Search found 184 matches

by jonboy49
Fri Mar 01, 2024 11:19 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

In this case, I had to switchover to HTTPAPI. For which I wrote the rpg pgm taken from Example7. Example 7 assumes that there is a web site at the other end which is expecting multi-part form data and that one of the inputs is a file. It has no notion of authentication. It is also highly unlikely t...
by jonboy49
Fri Mar 01, 2024 10:54 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

freelance wrote: Fri Mar 01, 2024 9:44 pmyes
Meaning that the REST service you are using is similar to the one I referenced?

If not ??
by jonboy49
Fri Mar 01, 2024 9:03 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

That URL doesn't help. It requires that you sign in and I do not have a TikTok developer Id. I am willing to try and help but please read my response and answer the questions in a meaningful way. Assuming that the TikTok API you referenced is similar to the one I listed then you here's the basic set...
by jonboy49
Fri Feb 23, 2024 9:48 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

Yes, we are trying to upload our product data onto the tiktok in bulk qnty i.e. my pgm should send out the IFS .json file to tiktok seller center website. Next, we will upload .jpg/s to that website via a diff tool. OK - I'm going to try one more time. We can't help you if you don't give us more sp...
by jonboy49
Thu Feb 22, 2024 8:54 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

Why do you think you need Apache to be running? As I pointed out earlier, Scott's JSONWEBSRV example is a SERVER application - and it needs Apache or NGINX to be running. IF you were trying to run Scott's program they Yes - Apache would need to be configured and running. But if you are UPLOADING fil...
by jonboy49
Thu Feb 22, 2024 4:44 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

Which is fine - but why did you think that JSONWEBSRV would be a useful reference? As I tried to explain it is an example of _supplying_ a web service. Not _consumming_ one which is what you are trying to do. Normally I would use HTTPAPI to send the file (Scott has examples in LIBHTTP of file upload...
by jonboy49
Wed Feb 21, 2024 11:24 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 16
Views: 297

Re: JSONWEBSRV.sqlrpgle

You may have misunderstood the use of getenv(). The text 'REQUEST_URI' is a literal and asks that the URI from which the request originated be retrieved. You cannot use it to specify an arbitrary URI (in your case www.tiktok.com) - it wouldn't know what to do with it. getenv is used to retrieve info...
by jonboy49
Mon Feb 19, 2024 11:59 pm
Forum: HTTPAPI
Topic: Using Oauth2 with HTTPAPI
Replies: 8
Views: 263

Re: Using Oauth2 with HTTPAPI

Glad it was useful to you. 1) For the token it has to be a POST. In fact if you try the URL you were given in a browser it will tell you that POST is required. 2) I didn't notice it either but I checked in the source code of the latest version and it was there. Not sure when it was added but I had j...
by jonboy49
Mon Feb 19, 2024 8:59 pm
Forum: HTTPAPI
Topic: Using Oauth2 with HTTPAPI
Replies: 8
Views: 263

Re: Using Oauth2 with HTTPAPI

It looks like a server-server setup and somewhat similar to mine but I don't have to mess with form-encoding. Luckily HTTPAPI has that feature available although I've never needed to use it. There is at least one example that uses it in the LIBHTTP RPG sources. Scott is WAY more knowledgeable than m...
by jonboy49
Mon Feb 19, 2024 7:19 pm
Forum: HTTPAPI
Topic: Using Oauth2 with HTTPAPI
Replies: 8
Views: 263

Re: Using Oauth2 with HTTPAPI

I have just finished working on this as Zoom has changed their APIs to use OAUTH2 instead of JWTs. For use by tools such as HTTPAPI Zoom has implemented a Server-Server application interface which is much easier to use than the call-back mechanism that some OAUTH2 users require. I would check with y...