unsplash v0.1.0 Unsplash
The Unslpash API in Elixir
Pagination
Those API results that are paginated will return a Stream in which you can resolve by using any Enum function. You can also pass in per_page and page keywords if you would like to do pagination manually. Max per_page is 30.
Summary
Functions
GET /categories
GET /categories/:id
GET /categories/:id/photos
GET /curated_batches
GET /curated_batches/:id
GET /curated_batch/:id/photos
GET /me
GET /photos
DELETE /photos/:id/like
GET /stats/total
PUT /me
POST /photos
GET /users/:username
GET /users/:username/likes
Functions
PUT /me
Args:
opts- Keyword list of options
Options:
username- Username.first_name- First name.last_name-Last name.email-Email.url-Portfolio/personal URL.location- Location.bio-About/bio.instagram_username- Instagram username.
Requires write_user scope
POST /photos
Args:
photo- the path of the photo to be uploaded.
Requires the write_photos scope
This currently is broken