Thoughts is an elixir based twitter streaming client I built to teach myself how to write elixir. I called it thoughts because I like to think about twitter as an API to the human mind.
If available in Hex, the package can be installed as:
- Add
thoughts
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:thoughts, "~> 0.1.0"}]
end
```
- Ensure
thoughts
is started before your application:
```elixir
def application do
[applications: [:thoughts]]
end
```
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_SECRET
- first clone the repo:
`$ git clone https://github.com/deathtenk/thoughts`
- then from within the thoughts directory run:
`$ iex -S mix`
- from within iex run the following
```
iex(1)> Thoughts.on("Hockey")
22:59:13.511 [info] finding thoughts on Hockey...
#PID<0.142.0>
RT @GoldenBlogs: Golden Medals: Post @alexmorgan13 pep talk, @CalWomensSoccer opens NCAA tourney Sat #GoBears
____________
RT @BarSouthNCelly: Dear, Mitch Marner:
Can you please prance like this for every celly you ever do?
Sincerely Hockey Fans 🐴🚨 https://t.c…
____________
Beaver men's hockey beats Mankato in OT. Go Bemidji Beavers!
____________
Jake Muzzin: Blocks five shots against Ottawa
____________
```
test