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
0
Question by laserchalk · Jul 25, 2013 at 09:18 AM · jsonwwwformminijson

How do I use WWWform and JSON to login to reddit?

I want to be able to let users connect with their reddit accounts in my game and I have been doing a bit of research. I came across this tutorial for reddit login with python and I noticed it was a bit like using the WWWform in Unity to send data.

The python tutorial also used JSON to read the information that was sent back, I think? I then found some info on JSON for Unity and found this MiniJSON script.

So basically I was wondering if this is all the stuff I need to use to login to reddit? Also for the MiniJSON script, when it says "using MiniJSON;" on line 5 does that mean it is using the MiniJSON.cs script that they linked at the bottom of their post?

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 Graham-Dunnett · Jul 25, 2013 at 01:51 PM

I've never logged into Reddit before, but, looking at the links in your question, yes, that looks to be all you need to log in through script. The using MiniJSON; does mean the code in the MiniJSON.cs script is used/needed.

One word of advice. I'd strongly urge that you experiment logging into Reddit using a tool like Poster, before you try to do this from Unity. Poster is an add-in to Firefox that lets you make GET/POST/PUT/etc requests to a remote site, and shows the (often) xml response. Poking the Reddit REST API this way will teach you all you need to know about the API. Once you know what URLs to hit, what headers are needed, and what can go wrong, you'll be all set to do this from Unity. If you dive straight into Unity you'll not know if any problems are due to Unity, or how you're accessing Reddit.

Comment
Add comment · Show 1 · 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 laserchalk · Jul 26, 2013 at 06:49 AM 0
Share

Thanks for the advice, I found Poster for Chrome as well. This is one of those things that is difficult to know if it's working or not.

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

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to get keyvalue from MiniJSON unity 1 Answer

how to retrive an array from SQL database in Javascript? 1 Answer

Calling Json script and displaying the Images within the script 0 Answers

REST API Response Error: 406 - not acceptable 1 Answer

Use the data received from WWW in UI 1 Answer


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