Search found 206 matches

by jonboy49
Sun Mar 03, 2024 10:46 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 26
Views: 1707

Re: JSONWEBSRV.sqlrpgle

Example 7 assumes that there is a website 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 that the TikTok API works like that. Refer to the TikTok API document I referenced earlier. That is...
by jonboy49
Sun Mar 03, 2024 7:01 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 26
Views: 1707

Re: JSONWEBSRV.sqlrpgle

Did you just make this URL up? I cannot find any such URL in the TikTok API set. Please supply a reachable _documentation_ URL similar to this one: https://business-api.tiktok.com/portal/docs?id=1739067433456642 I can pretty much guarantee that the TikTok APIs do not work the way your code is writt...
by jonboy49
Fri Mar 01, 2024 11:19 pm
Forum: YAJL-ILE
Topic: JSONWEBSRV.sqlrpgle
Replies: 26
Views: 1707

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: 26
Views: 1707

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: 26
Views: 1707

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: 26
Views: 1707

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: 26
Views: 1707

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: 26
Views: 1707

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: 26
Views: 1707

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: 814

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...