A Library for generating random user data. Like Lorem Ipsum, but for people.
Simple Usage:
Pretender.with(context)
.fetch(callback);
Get 30 women from US:
Pretender.with(context)
.amount(30)
.nationality(Nationality.US)
.gender(Gender.FEMALE)
.fetch(callback);
{
results: [{
user: {
gender: "female",
name: {
title: "ms",
first: "manuela",
last: "velasco"
},
location: {
street: "1969 calle de alberto aguilera",
city: "la coruña",
state: "asturias",
zip: "56298"
},
email: "manuela.velasco50@example.com",
username: "heavybutterfly920",
password: "enterprise",
salt: ">egEn6YsO",
md5: "2dd1894ea9d19bf5479992da95713a3a",
sha1: "ba230bc400723f470b68e9609ab7d0e6cf123b59",
sha256: "f4f52bf8c5ad7fc759d1d4156b25a4c7b3d1e2eec6c92d80e508aa0b7946d4ba",
registered: "1303647245",
dob: "415458547",
phone: "994-131-106",
cell: "626-695-164",
DNI: "52434048-I",
picture: {
large: "http://api.randomuser.me/portraits/women/39.jpg",
medium: "http://api.randomuser.me/portraits/med/women/39.jpg",
thumbnail: "http://api.randomuser.me/portraits/thumb/women/39.jpg",
},
version: "0.6"
nationality: "ES"
},
seed: "graywolf"
}]
}
Add the dependency in the form:
dependencies {
compile 'com.cesarferreira.pretender:pretender:0.1.0'
}
- Fork it ( https://github.com/cesarferreira/Pretender/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request