unsplash v1.0.0 Unsplash.Users View Source
Link to this section Summary
Functions
GET /users/:username/collections
GET /users/:username
GET /users/:username/likes
GET /me
GET /users/:username/photos
GET /users/:username/portfolio
GET /users/:username/statistics
PUT /me
Link to this section Functions
GET /users/:username/collections
Args:
username
- The user’s username. Required
GET /users/:username
Args:
username
- the username stringw
- Profile image width in pixels.h
- Profile image height in pixels.
GET /users/:username/likes
Args:
username
- the username stringorder_by
- How to sort the photos. Optional. (Valid values: latest, oldest, popular; default: latest)
GET /me
Requires read_user
scope
GET /users/:username/photos
Args:
username
The user’s username. Required.page
Page number to retrieve. (Optional; default: 1)per_page
Number of items per page. (Optional; default: 10)order_by
How to sort the photos. Optional. (Valid values: latest, oldest, popular; default: latest)stats
how the stats for each user’s photo. (Optional; default: false)resolution
The frequency of the stats. (Optional; default: “days”)quantity
The amount of for each stat. (Optional; default: 30)
GET /users/:username/portfolio
Retrieve a single user’s portfolio link.
Args:
username
- The user’s username. Required.
GET /users/:username/statistics
Args:
username
-The user’s username. Required.resolution
-The frequency of the stats. (Optional; default: “days”)quantity
-The amount of for each stat. (Optional; default: 30)
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