Comments (13)
I've started working on this.
from extwitter.
Thank you for the feedback. Is this about the following methods?
- https://dev.twitter.com/oauth/reference/post/oauth/access_token
- https://dev.twitter.com/oauth/reference/post/oauth/request_token
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.
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.
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.
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.
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.
Understood. The example controller would help instead.
from extwitter.
Hey :)
What's the status on that? Would be really helpful to have this in here.
from extwitter.
https://gist.github.com/arjan/21a501167133cbb38454
from extwitter.
@arjan cool, will you create a PR for this at some point?
from extwitter.
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.
Sure, go ahead.. it's been too busy here for me to fix this :-/
from extwitter.
I'm closing this item with #21, but if anyone find further issue, please reopen or open another one.
from extwitter.
Related Issues (20)
- Twitter Streaming API can return multiple portions of tweets in a given chunk HOT 4
- Poison.decode with `keys: :atoms` is unsafe
- search_next_results does not pass on certain opts
- The max_id on the search_metadata is incorrect HOT 1
- Docs do not generate on Elixir 1.8.x HOT 2
- Streaming specs fail on Elixir 1.8.x HOT 1
- Direct Messages no longer working
- How do we get the URL of a tweet after using ExTwitter.update/1? HOT 1
- Replace Poison with Jason HOT 2
- Email field missing from ExTwitter.Model.User HOT 1
- Add LICENSE file HOT 2
- New API 2 paths does not work with request function HOT 3
- Jason.DecodeError occurs for deleted Tweets HOT 4
- Where is full_text / extended_tweet? HOT 2
- Runtime error in OTP 24 HOT 2
- Compilation fails with elixir 1.14 HOT 2
- Twitter api closes down multiple old endpoints at October 31, 2022
- How to call "/users/me"?
- How to get user's last N tweets?
- SSL error on OTP 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extwitter.