1.0.3 • Published 6 years ago

lookbook-api v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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'

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago