Coder Social home page Coder Social logo

Comments (13)

arjan avatar arjan commented on June 9, 2024

I've started working on this.

from extwitter.

parroty avatar parroty commented on June 9, 2024

Thank you for the feedback. Is this about the following methods?

This page seems to talk about both oauth1.0 and oauth2.0, and I'm having some difficulties to understand how it should work. Ruby's twitter gem seems to implement oauth2.0 token retrieval, but it seems a little different method set.

I'll be checking more later, but if you have any more insight, it helps a lot.

from extwitter.

arjan avatar arjan commented on June 9, 2024

Yes, those 2 calls.

Look here for more info: http://oauth.net/core/1.0/#anchor9

I already implemented it and got it working. Now I'm able to do Twitter login from a Phoenix-powered site :)

from extwitter.

arjan avatar arjan commented on June 9, 2024

Check my implementation here:
https://github.com/arjan/extwitter/blob/oauth-authorize/lib/extwitter/api/authorize.ex

(notice that that branch also contains some other commits, I'll clean it up before I do a PR)

from extwitter.

parroty avatar parroty commented on June 9, 2024

Thanks, it sounds nice. Can I get example usage in your app (or tests)? I would like to try out too, and maybe good to expose them to top (ExTwitter) module.

from extwitter.

arjan avatar arjan commented on June 9, 2024

Yes exposing would be nice. Test cases are difficult as authorization requires user interaction.
But I'll provide an example controller, so you can see how it is used in Phoenix.

from extwitter.

parroty avatar parroty commented on June 9, 2024

Understood. The example controller would help instead.

from extwitter.

optikfluffel avatar optikfluffel commented on June 9, 2024

Hey :)
What's the status on that? Would be really helpful to have this in here.

from extwitter.

arjan avatar arjan commented on June 9, 2024

https://gist.github.com/arjan/21a501167133cbb38454

from extwitter.

optikfluffel avatar optikfluffel commented on June 9, 2024

@arjan cool, will you create a PR for this at some point?

from extwitter.

omnibs avatar omnibs commented on June 9, 2024

Since it's been so long... @arjan do you mind if I make the PR? I had to fork @parroty's repo and copy your code to use on a perosnal project

from extwitter.

arjan avatar arjan commented on June 9, 2024

Sure, go ahead.. it's been too busy here for me to fix this :-/

from extwitter.

parroty avatar parroty commented on June 9, 2024

I'm closing this item with #21, but if anyone find further issue, please reopen or open another one.

from extwitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.