JSON Api Helper plugin
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
JSON Api Helper plugin
I've been working with a lot of web based apis recently which involves a lot of repetitive coding to get the json elements out of their tree and into fields. The process is as usual very easy in LiveCode but involves a lot of repetition which I don't like, and I always try to eliminate repetition where possible. So I built this little plugin to make my live easier and thought others might find it of help too.
Download from
http://livecodeshare.runrev.com/stack/9 ... API-Helper
Explainer video here
https://youtu.be/pNQAf0zF-ko
Download from
http://livecodeshare.runrev.com/stack/9 ... API-Helper
Explainer video here
https://youtu.be/pNQAf0zF-ko
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- Posts: 722
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: JSON Api Helper plugin
Really nice work Andy
I can certainly use this because I also work with JSON data in my current application.
I will probably modify it a bit to also handle any Array and not only an array generated from a JSON file.
Thanks for sharing!
Paul
I can certainly use this because I also work with JSON data in my current application.
I will probably modify it a bit to also handle any Array and not only an array generated from a JSON file.
Thanks for sharing!
Paul
-
- VIP Livecode Opensource Backer
- Posts: 4016
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: JSON Api Helper plugin
Hi Andy,
thanks for the stack. It can come in quite handy.
I noticed that using the business edition all https sites did not work.
I had to issue from the message box:
then it worked.
Somehow tsNetLibURL interferes with the "put url.." command when dealing with "https" in business edition. Community works fine. Did not text Indy.
Thanks again
Bernd
thanks for the stack. It can come in quite handy.
I noticed that using the business edition all https sites did not work.
I had to issue from the message box:
Code: Select all
dispatch "revunloadLibrary" to stack "tsNetLibURL"
Somehow tsNetLibURL interferes with the "put url.." command when dealing with "https" in business edition. Community works fine. Did not text Indy.
Thanks again
Bernd
Re: JSON Api Helper plugin
Thanks Paul, that's a good idea, I'll mod it so that pure arrays can also be selected.mrcoollion wrote: ↑Fri Jul 24, 2020 8:11 amReally nice work Andy
I can certainly use this because I also work with JSON data in my current application.
I will probably modify it a bit to also handle any Array and not only an array generated from a JSON file.
Thanks for sharing!
Paul
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: JSON Api Helper plugin
Hi Bernd, interesting, I was using the Indy version which worked just fine.bn wrote: ↑Fri Jul 24, 2020 11:49 amHi Andy,
thanks for the stack. It can come in quite handy.
I noticed that using the business edition all https sites did not work.
I had to issue from the message box:
then it worked.Code: Select all
dispatch "revunloadLibrary" to stack "tsNetLibURL"
Somehow tsNetLibURL interferes with the "put url.." command when dealing with "https" in business edition. Community works fine. Did not text Indy.
Thanks again
Bernd
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: JSON Api Helper plugin
Hi Andy, many thanks for sharing, this is very useful and time saving.
Regards.
Regards.
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Posts: 722
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
-
- VIP Livecode Opensource Backer
- Posts: 136
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: JSON Api Helper plugin
AndyP:
I like the way your video looks.
I haven't yet dabbled in video so I'm a beginner in that area. Any guidance would be appreciated.
Thanks,
Bob
I like the way your video looks.
How did you create it? Software? Separate YouTube channel?Explainer video
I haven't yet dabbled in video so I'm a beginner in that area. Any guidance would be appreciated.
Thanks,
Bob
Re: JSON Api Helper plugin
Hi Bob, I'm new to making videos too. So the opening and closing cards are made with Canva, I'm still using the free version. For the video editor, I'm using the paid version of Filmora from WonderShare which I find easy to use and intuitive, much like LiveCode
If you want a very easy to get started video editor, then I would suggest OpenShot. I started with this and then transitioned to Filmora after trying Davinci Resolve which has a full feature set but I found the learning curve was to high.. I like things simple.
Oh and I use OBS for capturing the desktop and overlaying the head and shoulders camera capture with a makeshift green screen made from some old curtain material.
If you want a very easy to get started video editor, then I would suggest OpenShot. I started with this and then transitioned to Filmora after trying Davinci Resolve which has a full feature set but I found the learning curve was to high.. I like things simple.
Oh and I use OBS for capturing the desktop and overlaying the head and shoulders camera capture with a makeshift green screen made from some old curtain material.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: JSON Api Helper plugin
thanks andy very helpful
-
- VIP Livecode Opensource Backer
- Posts: 136
- Joined: Tue Feb 23, 2010 10:53 pm
- Location: Saint Louis, Missouri USA
Re: JSON Api Helper plugin
AndyP:
Thanks for the recommendations. I have started looking at your three recommendations (Canva, OpenShot and OBS).
I have a lot to learn from my zero starting point!
Many thanks for your guidance,
Bob
Thanks for the recommendations. I have started looking at your three recommendations (Canva, OpenShot and OBS).
I have a lot to learn from my zero starting point!
Many thanks for your guidance,
Bob