and when i use a webviewer in thunkable pointing to the url,
i also get back a json string
i have 2 questions:
is it possible to get the response (hidden ie. not displayed) so i could parse iit a a json string and present the fields nicely in a nice page (and not in a webviewer page)?
why do i get a network error when i try to use webapi on it?
I did get an error in Thunkable Live but then I pasted the API url in again and it worked. But it’s exactly the same as what you had (I think) so I’m not sure what happened there.
You can parse the JSON response to get the horoscope or other properties. See the first screen of this demo:
this would be hard to test because i would have to flip back and forth betwen desktop and mobile after every change! for an app like this, it’s simple - but beyond this it would be tough!
You can keep The Thunkable app open and showing your project in your mobile while you change the blocks in your computer and the changes will be reflected with a little delay.
It’s a strict CORS policy issue I’m guessing. I can’t explain it as I don’t fully understand why it’s happening. It’ll have something to do with the host website/server. I’ll ask the engineers this week if there’s anything we can do to improve that issue.
I will, later, create an HTML file to read the data and pass it to the Web Viewer which should solve the issue of not being able to run it from your computer.
This is the actual issue for all API calls from Thunkable computer preview.
It seems Thunkable preview server blocks information including the server name. Most API service sites would not accept null as a source of request as it could be a hacking attempt.