Skip to content

Latest commit

 

History

History
47 lines (25 loc) · 1.48 KB

README.md

File metadata and controls

47 lines (25 loc) · 1.48 KB

RandomUser

Build Status Version License Platform

iOS library for to generate random users, using https://randomuser.me/

Installation

RandomUser is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RandomUser"        

Usage

OARandomUserService provides four different methods to fetch a random user.

Return any random user:

[OARandomUserService requestRandomUser:] 

Return a random user with the specified gender:

[OARandomUserService requestRandomUserWithGender:handler:]

Return a user using a predefined seed, this allow you to always generate the same user:

[OARandomUserService requestRandomUserWithSeed:handler:]

Return a specific number of random users:

[OARandomUserService requestRandomUserWithCount:handler:]

Author

Omar Abdelhafith, [email protected]

License

RandomUser is available under the MIT license. See the LICENSE file for more info.