Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by aicos · May 12, 2011 at 09:46 PM · dropboxrestrestful

Working RESTful or Dropbox APIs

I'm trying programatically access Dropbox content via Unity. So far I've tried two open source Dropbox APIs, and neither of them work with Unity due to either bugs or certain packages not being present in Mono. So now I'm thinking I'll be happy with just a working RESTful API.

Can anyone recommend something that works with Unity? The plan is, in the end to deploy to iPhone.

PS: I know theres another thread on this subject, but I couldn't find the answers I needed in it. Also looked like it was referring to Unity 2.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Joshua · Jul 09, 2011 at 02:47 PM

You realize that you can programatically access (so read, not write) content from DropBox through Unity using only Unitys own API right? It's a great free and reliable way to store for instance a 'daily quote', that you can then change yourself every day.

1) create a txt file (notepad for instance) and write whatever you want.

2) upload it to your public DropBox folder. Copy the url.

 var path : String = "paste_the_url_here";
 var www : WWW = new WWW( path );
 yield www;
 Debug.Log( www.text );

And done. This can also be done for things other then text files. Have a look at the WWW class API.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aicos · Jul 12, 2011 at 10:51 PM 0
Share

Thanks for the response Joshua. Unless I'm missing something I don't think its that simple. I managed to solve it in the end with the help of a coworker. The login process is quite involved and required an OAuth implementation. We also made use of the WWWForm class. Before that, I tried two .NET based DropBox libraries. Neither of which ran with $$anonymous$$ono on Unity3. I will try to convince my coworker to release it to the community once we have cleaned up the code a bit.

avatar image Chris D · Jul 12, 2011 at 11:10 PM 0
Share

I think what @Joshua was saying is that if you put it in your public dropbox folder, that becomes a publicly accessible piece of data and can be linked to like any other data on a server - no login required.

for instance: http://dl.dropbox.com/u/22536289/How%20to%20use%20the%20Public%20folder.rtf

is hosted in my public folder and is available to anyone.

avatar image aicos · Jul 13, 2011 at 12:48 AM 0
Share

Ah, right. Sorry, missed that.

Well, we needed also to be able to write data to the dropbox too.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Reading JSON response from Google Sheets in unity ( most places have WWW.text) 1 Answer

Set Content-Length header for UnityWebRequest POST requests in 2017.3? 1 Answer

How do I use RESTful apis from Unity? 0 Answers

Recursive Coroutine-starts with RestSharp stops at the first callback which starts another coroutine of the same 0 Answers

RESTful APIs with authentication in Unity 5? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges