Skip to content

jzarca01/lookbook-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lookbook-api

An API for Lookbook.nu

Usage

const LookbookApi = require('lookbook-api');
const lookbook = new LookbookApi();

Sign up

lookbook.signUp(login, password, name, gender ?= 'girl'|'guy')

Log in

lookbook.login(login, password);

Get User Info

lookbook.getUser(userId);

Get Looks

lookbook.getNewLooks(gender ?= 'girls'|'guys')
lookbook.getHotLooks(gender ?= 'girls'|'guys')
lookbook.getTopLooks(gender ?= 'girls'|'guys')

Get Looks By Category

lookbook.getLooksByCategory(category);

Get Look Info

lookbook.getLook(lookId);

Get Items infos for a specific look

lookbook.getItemsByLook(lookId);

Search Looks

lookbook.searchLooks(searchTerm, sort ?= 'top'|'new', time ?='year'|'month'|'day', gender ?= 'girls'|'guys', maxResults = "50")
maxResults can be "ALL"

Search People

lookbook.searchPeople(searchTerm, sort ?= 'top'|'new', time ?= 'year'|'month'|'day', gender ?= 'girls'|'guys', maxResults = "50")
maxResults can be "ALL"

Hype a look

lookbook.hypeLook(lookId)

Fan a user

lookbook.fanUser(userId)

Unfan a user

lookbook.unfanUser(userId)

Add a comment

lookbook.addComment(modelId, comment)

Post a look

lookbook.postLook(userId, { title, description, photo = 'test.jpeg', tumblr = 'NO', facebook = 'NO', twitter = 'NO' })

test.jpeg can be found in the folder 'Uploads'

Releases

No releases published

Packages

No packages published