random_user_api alternatives and similar packages
Based on the "Third Party APIs" category.
Alternatively, view random_user_api alternatives based on common mentions on social networks and blogs.
-
MongoosePush
MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS. -
cashier
Cashier is an Elixir library that aims to be an easy to use payment gateway, whilst offering the fault tolerance and scalability benefits of being built on top of Erlang/OTP
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of random_user_api or a related project?
README
RandomUserApi
Small and useful library, which use API of http://randomuser.me to generate random users.
Installation
To install this app, just add it in your list of dependencies in mix.exs
:
def deps do
[
{:random_user_api, "~> 1.2.1"}
]
end
Documentation is available here.
Instruction
Usage is very straightforward. In many cases simple call for single user would be enough.
alias RandomUserApi.Engine
# get single user
Engine.get_users()
# get 10 users
Engine.get_users [number: 10]
# get one female
Engine.get users [gender: :female]
# get three men
Engine.get_users [number: 3, gender: :male]
# get one Brazilian
Engine.get_users [nat: "BR"]
TODO:
- Included / excluded fields
- list of values
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!