ElixirUber
Uber client library for Elixir. It uses oauth2 to call Uber’s REST API.
It only supports very limited set of functions yet. Refer to lib/elixir_uber.ex for available functions and examples.
Installation
Package can be installed as:
Add
elixir_uber
to your list of dependencies inmix.exs
:def deps do [{:elixir_uber, "~> 0.0.1"}] end
Ensure
elixir_uber
is started before your application:def application do [applications: [:elixir_uber]] end
Configuration
# Configure client ElixirUber.configure("UBER_CLIENT_ID", "UBER_CLIENT_SECRET", "CALLBACK_URL") # Call authorize_url! method ElixirUber.authorize_url! # Redirect to the url, and get code client = ElixirUber.get_token!(code: "CODE") # Get user object user = ElixirUber.me(client)
Documentation
Status
It’s very early version, most of API functions are missing.
Changelog
0.0.1
- Basic current user info
- Update dependencies