RandomUserApi

Build Status

Small and useful library, which use API of http://randomuser.me to generate random users.

Hex link

Installation

The package can be installed as:

  1. Add random_user_api to your list of dependencies in mix.exs:

    def deps do

     [{:random_user_api, "~> 1.0.0"}]

    end

  2. Ensure random_user_api is started before your application, otherwise it won't work:

    def application do

     [applications: [:random_user_api]]

    end

Documentation is available here.

##Instruction

To use this library just call Engine.get_users/1 with options, which are by default empty list.

In this short instruction assume, that Engine is an alias for RandomUserApi.Engine.

###TODO:

I rewrited this library to use HTTPoison, because HTTPotion had issues with SSL.

Note:

If nationality you put is not known by the API, it will be ignored. Same story with gender.

Enjoy!