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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Thu Jun 22, 2017 12:31 pm

Can anyone share a sample stack using "DropBox" to save and retrieve small txt and binary files to an IOS device?

Thanks,

David

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

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

Post by mrcoollion » Thu Jun 22, 2017 3:29 pm

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
Attachments
DropboxAPI_2.zip
Dropbox API example
(95.42 KiB) Downloaded 241 times

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

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

Post by Mikey » Thu Jun 22, 2017 3:31 pm

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.

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Thu Jun 22, 2017 7:11 pm

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

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

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

Post by Mikey » Thu Jun 22, 2017 7:39 pm

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.

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

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

Post by DR White » Thu Jun 22, 2017 9:31 pm

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

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

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

Post by Mikey » Thu Jun 22, 2017 9:48 pm

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.

Post Reply