Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Twitter Authentication and web browsing?

Comments in 'Plugin Development' started by Falk, Jan 19, 2014.

  1. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I'm planning on making a plugin with integrates with YouTube and Twitter, I have finished the YouTube part easily as no authentication is needed.

    For the Twitter, I was wondering which of the two auth methods below seem to be better suited, the first is obviously easily for the end user whilst the second is more robust and can handle twice the queries every 15 minutes. First, https://dev.twitter.com/docs/auth/pin-based-authorization and second https://dev.twitter.com/docs/auth/application-only-auth. Both would be a one time process completed by the server owner, for one they would go to URL and copy the PIN to console, in two they would have to configure an app and give the secret and key to the plugin. I'm new to oauth so I need help deciding which to use.

    Also, I was wondering how I should go about opening URLs in a browser, is there a universal way or do I just have to check for different operating system, I know Mac has open and windows has start and there's also x-www-browser.

    So I need to know which oauth method would be better and the best way of opening web pages?
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I love how nobody replies to my help threads :)
  3. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
  4. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    ye of course, @wies knows everything xD
    PEMapModder likes this.
  5. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Solved it myself. The twitter API is just plain annoying :(
  6. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    I've already made a plugin that uses the twitter auth. :p I remember asking you once..
    Falk likes this.
  7. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Im just trying to make it easy for server owners to deploy without configuring their own app, guess there is no way around it :)
  8. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Think I will stick to YouTube and do twitter for something else
  9. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    Okai :)
  10. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    Hmm check out https://dev.twitter.com/docs/auth/oauth and see more about the oauth API.
  11. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yeah, I have read that, just every server will need its own app which is hard on server owners.
  12. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    :/ I'm not to happy about the new twitter API.. :/
  13. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Same :(
  14. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    Hmm, maybe you should contact the twitter devs, may take forever but It may be worth it.
  15. djones96
    Offline

    djones96 Ban Evader

    Joined:
    Jan 28, 2014
    Posts:
    4
    Minecraft User:
    djones96
    You should grab a API key I guess?
  16. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yes that's the issue, every server owner would also need a key.
  17. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    I know there's a way. But i am not really sure about it, though...
  18. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    I have an OAuth key, everyone does :D

Share This Page

Advertisement