Page 1 of 1

Sample stack using "DropBox" to save and retrieve small file

Posted: Thu Jun 22, 2017 12:31 pm
by DR White
Can anyone share a sample stack using "DropBox" to save and retrieve small txt and binary files to an IOS device?

Thanks,

David

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 3:29 pm
by mrcoollion
I only have this attached example for you.

Do not know if this is still valid and i cannot help you with it, but you are welcome to test it.

See other posts on dropbox related to livecode LiveCode 9.0.0 DP 7

regards,

Paul

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 3:31 pm
by Mikey
David,
If you've been reading the other threads, dropbox is in flux, because the v1 API is deprecated and scheduled to cease at the end of the month. That means using the v2 API. There are multiple threads on the topic, but I think the most useful one is at http://forums.livecode.com/viewtopic.php?f=9&t=29392

If that doesn't help you get started, you know how to find me.

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 7:11 pm
by DR White
Mikey and mroollion,

Thanks for the guidance.

Sounds like maybe I should wait a month or so before trying to figure out how to import a couple small files to app from DropBox?

I have an Indy license.

I don't know whether I should be using LC8 or LC9.

David

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 7:39 pm
by Mikey
David,
I would have at it, now. The library is there, and I've been frantically testing and working on moving my existing projects over to it since Monte put it out several weeks ago, because we're almost out of time. Gerard's code, also in my repo, has been out for a year or so, and seems to work just fine. I have only run into some minor things with LC's library, but since it's just straight LCS, I was able to patch it myself while waiting for LC to release their own fix.
If you want to use it in 8, it's just a matter of downloading the library from my github repo and adding it as a substack to your project.

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 9:31 pm
by DR White
Mikey,

Maybe after your compression eases, you could post a sample stack on just exporting and importing a simple text file to a LC ios app using DropBox. I will need to learn how to install and use a new LC library in the mean time.

Thanks for your help,

David

Re: Sample stack using "DropBox" to save and retrieve small

Posted: Thu Jun 22, 2017 9:48 pm
by Mikey
Yes, but it's going to be a while. I'm in the midst of updating a bunch of apps that use dropbox to use the new library.
Here's an easy way to get to play with it in 8 without having to figure out how to install anything so you can play with it:
Download it from my repo.
If you know how to use substacks, then make the library into a substack of your main stack but if you don't, then right-click on it and open it with any text editor, copy the code, and paste into your stack's stack script. That will get you going for now.