All Projects → almightycouch → Twittex

almightycouch / Twittex

Licence: mit
Twitter client library for Elixir.

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Twittex

Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+4902.17%)
Mutual labels:  oauth, twitter
Twitter Scraper
Scrape the Twitter Frontend API without authentication.
Stars: ✭ 3,037 (+6502.17%)
Mutual labels:  twitter, client
Spring Security Pac4j
pac4j security library for Spring Security: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 231 (+402.17%)
Mutual labels:  oauth, twitter
Spring Webmvc Pac4j
Security library for Spring Web MVC: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 110 (+139.13%)
Mutual labels:  oauth, twitter
Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+893.48%)
Mutual labels:  oauth, twitter
Assent
Multi-provider framework in Elixir
Stars: ✭ 126 (+173.91%)
Mutual labels:  oauth, twitter
oauth
Allow users to log in with GitHub, Twitter, Facebook, and more!
Stars: ✭ 21 (-54.35%)
Mutual labels:  oauth, twitter
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (+413.04%)
Mutual labels:  oauth, twitter
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+865.22%)
Mutual labels:  oauth, twitter
Yii2 Authclient
Yii 2 authclient extension.
Stars: ✭ 430 (+834.78%)
Mutual labels:  oauth, twitter
Flickr Sdk
Almost certainly the best Flickr API client in the world for node and the browser
Stars: ✭ 104 (+126.09%)
Mutual labels:  oauth, client
Ueberauth twitter
Twitter Strategy for Überauth
Stars: ✭ 31 (-32.61%)
Mutual labels:  oauth, twitter
Zhihu Oauth
尝试解析出知乎官方未开放的 OAuth2 接口,并提供优雅的使用方式,作为 zhihu-py3 项目的替代者,目前还在实验阶段
Stars: ✭ 1,237 (+2589.13%)
Mutual labels:  oauth, client
Spark Pac4j
Security library for Sparkjava: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 154 (+234.78%)
Mutual labels:  oauth, twitter
Echofon Firefox Unofficial
Echofon Unofficial - maintained version of Echofon: full featured, super clean Twitter app for Firefox.
Stars: ✭ 73 (+58.7%)
Mutual labels:  twitter, client
Play Pac4j
Security library for Play framework 2 in Java and Scala: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 375 (+715.22%)
Mutual labels:  oauth, twitter
Tweety
.NET Standard Library to help in managing Twitter Webhook APIs.
Stars: ✭ 11 (-76.09%)
Mutual labels:  oauth, twitter
Nemiro.oauth.dll
Nemiro.OAuth is a class library for authorization via OAuth protocol in .NET Framework
Stars: ✭ 45 (-2.17%)
Mutual labels:  oauth, twitter
Tweepy
Twitter for Python!
Stars: ✭ 8,293 (+17928.26%)
Mutual labels:  twitter
Mini Platform
Mini-Platform致力于更简洁易用的轻量级微服务治理平台。
Stars: ✭ 45 (-2.17%)
Mutual labels:  oauth

Twittex

Travis Hex.pm Documentation Status GitHub license Github Issues

Cover image

Twitter client library for Elixir.

It provides support for both OAuth1.0 and OAuth2.0 authentication protocols.

Documentation

See the online documentation for more information.

Installation

Add :twittex to your list of dependencies in mix.exs:

def deps do
  [{:twittex, "~> 0.3"}]
end

Add your app's consumer_key and consumer_secret to config/config.exs:

config :twittex,
  consumer_key: "xxxxxx",
  consumer_secret: "xxxxxx"

Usage

Returns a collection of relevant Tweets matching #myelixirstatus:

iex> Twittex.search "#myelixirstatus"
{:ok, %{...}}

Same a the previous example but returns the last 50 Tweets (instead of 15):

iex> Twittex.search "#myelixirstatus", count: 50
{:ok, %{...}}

Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow:

iex> Twittex.home_timeline
{:ok, %{...}}

Returns a stream that consume Tweets from public data flowing through Twitter:

iex> {:ok, stream} = Twittex.stream "#myelixirstatus"
{:ok, #Function<51.48026477/2 in Stream.resource/3>}
iex> Enum.each stream, &IO.inspect/1
:ok

Authentication

Twittex supports both application-only and owner-token authentication methods.

Using application-only authentication, your app will be able to, for example:

  • Pull user timelines;
  • Access friends and followers of any account;
  • Access lists resources;
  • Search in tweets;
  • Retrieve any user information;

And it won’t be able to:

  • Post tweets or other resources;
  • Connect in Streaming endpoints;
  • Search for users;
  • Use any geo endpoint;
  • Access DMs or account credentials;

In order to access restricted endpoints and features you cannot access with the former method, you will have to use authenticate with your owner-token from dev.twitter.com.

To do so, simply add your access token to your application config file:

config :twittex,
  token: "xxxxxx",
  token_secret: "xxxxxx"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].