egolombek wrote: ↑Wed Jun 10, 2020 3:45 pm
I am hoping to learn how I can access data, without necessarily learning all the mechanics. If possible...
Possible, but not optimal. And likely not desirable, given the potential risks with network applications.
You're entering programming at a uniquely challenging moment in history. Everything is connected by an open Internet, which enables app designers to deliver empowering solutions, but it also enables the bad guys to do great damage.
In the olden days users were content to read and write files only on their own machine. Programming was simple then. Without connectivity, the only way someone could muck with your data was if they burgled your home and physically stole the computer. If that happened you may have bigger concerns than just the data an app uses.
These days data and the apps that use it are often in different locations, with potentially several billion other people between you and your data. And some of those are aren't nice. And a few of those are also smart.
The good news is that we're not alone. Every industry uses the internet, so there are few wheels we need to reinvent. But we do need to learn them, at least at ab basic level, so we can use them well.
HTTP is a beautiful protocol. You can make your own protocol, but most of the time what you need is just a way to send a request and get a reply, and HTTP does that wonderfully. So well, in fact, you'll probably never need to write a custom protocol through your entire career. Most of what you'll do will be done through HTTP.
HTTP is simple, yet extensible. So learning only a few things let's you use it in infinite ways.
Skim the Wikipedia page on it, and come back with questions. Some day I'll get around to writing a book on networking in LiveCode, but for now there's enough out there to do well.
When learning something new, details can be overwhelming. Don't worry. With HTTP a very small number of principles make everything else fall into place.
Once you have a basic understanding of using HTTP, some services like APIs will require a means of authenticating the request, making sure the requester is who they say they are.
There are a great many authentication methods, and some people even roll their own (not recommended nor usually even necessary). You can ignore most of them.
Most services you'll access will only use either Basic Auth or OAuth2. Basic is super-simple, and while OAuth2 is complex under the hood you don't need to worry about most of those details when using LiveCode because the included OAuth2 library takes care of the heavy lifting.
The most fun way to learn things is with a concrete example for something you want to accomplish. And you have one, so we don't need to explore everything all at once, just the parts you need to get this task done. Anything else can come later as your needs grow.
So let's start at the beginning, with the most important thing to learn: dealing with vendor documentation.
The code examples you provided will be helpful later. For now we need to know how to gain access to the system at all. And that will depend on which authentication method they use.
So your first task is to review their docs to find out what's needed to authenticate.
Good docs will make that easy to find, usually in the first section or two because everything else will depend on it.
So dive in and let us know what you find. If their writing isn't clear (many great engineers are poor writers, so that happens often) let us know how far you got and include the URL to the page where you found what you're asking about, and we'll pick it up from there.
The art of programming is really the art of learning. Those who do well are those who enjoy learning new things, a necessity in a field defined by perpetual change.
But you don't need to learn everything at once (and that's not even how learning works anyway). We'll help guide you step by step, as others helped us before, and over time you'll find yourself helping others as well.
Looking forward to what you learn about their auth methods...