Adapter for Imgur API
Imgur is an online image hosting and sharing community. The aim of this package is to allow Elixir users to be able to easily interact with the Imgur API.
In order to start using the API you need to register in order to receive a client id and client secret. This can be done on the Register an Application page on the Imgur website.
If available in Hex, the package can be installed by adding imgurex
to your list of dependencies:
def deps do
[{:imgurex, "~> 0.1.0"}]
end
You will also need to set your client id in config:
use Mix.Config
config :imgurex,
client_id: "dNqgBNYyLAmmMAx"
iex> image_id = "THE IMAGE'S ID"
iex> Imgurex.Image.info(image_id)
%Imgurex.Image{ ... }
iex> Imgurex.Image.upload("test/imgurex/test_image.jpeg")
%Imgurex.Image{ ... }
iex> Imgurex.Album.create(client_id)
%Imgurex.Album{ ... }