For business applications, I would like to have a method for importing or exporting files from my PC or Mac. Dropbox seems like it might be a good way to go, but I’m open to anything. I just spent the last week of my time trying to convert the Twitter sample code into a Dropbox REST API application and, in the end, could not make it happen. I would be happy to donate the work I’ve done if someone felt they were able to get this working. [import]uid: 104085 topic_id: 29948 reply_id: 329948[/import]
REST API example from code exchange:
http://developer.coronalabs.com/code/amazon-s3-rest-api-implementation-corona [import]uid: 12704 topic_id: 29948 reply_id: 120127[/import]
gtatarkin,
I appreciate the link. I have to admit that I hadn’t looked at the Amazon S3 REST implementation prior to posting. However, now that I have looked, I can say that it will be of little help to me. The Twitter sample code actually had a pretty straightforward implementation and I got it to work to a point in the simulator.
The Amazon S3 REST implementation looks far more complicated and less like what is needed for Dropbox (where the Twitter example was not too far off the mark).
I believe I narrowed down my problem to an issue with synchronization. When I call the network.request to request the token from Dropbox, I get a response if I’m using the Corona Simulator for Windows. But when I try the same code on my Android device, I get a network error. [import]uid: 104085 topic_id: 29948 reply_id: 120136[/import]
REST API example from code exchange:
http://developer.coronalabs.com/code/amazon-s3-rest-api-implementation-corona [import]uid: 12704 topic_id: 29948 reply_id: 120127[/import]
gtatarkin,
I appreciate the link. I have to admit that I hadn’t looked at the Amazon S3 REST implementation prior to posting. However, now that I have looked, I can say that it will be of little help to me. The Twitter sample code actually had a pretty straightforward implementation and I got it to work to a point in the simulator.
The Amazon S3 REST implementation looks far more complicated and less like what is needed for Dropbox (where the Twitter example was not too far off the mark).
I believe I narrowed down my problem to an issue with synchronization. When I call the network.request to request the token from Dropbox, I get a response if I’m using the Corona Simulator for Windows. But when I try the same code on my Android device, I get a network error. [import]uid: 104085 topic_id: 29948 reply_id: 120136[/import]
Hi Michael,
I just ran across this link: https://www.dropbox.com/help/179/en
Probably a long shot…but thought of all your dropbox efforts when I read it…is says:
“Some third party apps with Dropbox integration will ask for permission to access your Dropbox. To grant access, you will need to log in to your Dropbox account and explicitly press the Authorize button when prompted. You can visit the My Apps section of your account settings to review the apps you’ve granted permission to and revoke access at your discretion.”
[import]uid: 39506 topic_id: 29948 reply_id: 121375[/import]
I’ll need to investigate that. I believe they are just referring to the webPopup that is already integrated into the Twitter sample code. If you try the Twitter sample code, you will get a web page that pops up when attempting to “authorize.” However, there may be more to this. I noticed that Dropbox does have a MyApps section, but I don’t see how to add any apps to it. Also, when I go to the Dropbox developer screen, I can see MyApps and I see the apps I have registered, but the same apps don’t appear in my normal Dropbox user page. Nothing good is easy, huh? [import]uid: 104085 topic_id: 29948 reply_id: 121389[/import]
Hi Michael,
I just ran across this link: https://www.dropbox.com/help/179/en
Probably a long shot…but thought of all your dropbox efforts when I read it…is says:
“Some third party apps with Dropbox integration will ask for permission to access your Dropbox. To grant access, you will need to log in to your Dropbox account and explicitly press the Authorize button when prompted. You can visit the My Apps section of your account settings to review the apps you’ve granted permission to and revoke access at your discretion.”
[import]uid: 39506 topic_id: 29948 reply_id: 121375[/import]
I’ll need to investigate that. I believe they are just referring to the webPopup that is already integrated into the Twitter sample code. If you try the Twitter sample code, you will get a web page that pops up when attempting to “authorize.” However, there may be more to this. I noticed that Dropbox does have a MyApps section, but I don’t see how to add any apps to it. Also, when I go to the Dropbox developer screen, I can see MyApps and I see the apps I have registered, but the same apps don’t appear in my normal Dropbox user page. Nothing good is easy, huh? [import]uid: 104085 topic_id: 29948 reply_id: 121389[/import]