You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

unsplash-js

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

2

package.json
{
"name": "unsplash-js",
"version": "3.0.0",
"version": "3.1.0",
"description": "A Universal JavaScript wrapper for the Unsplash API",

@@ -5,0 +5,0 @@ "main": "lib/unsplash.js",

@@ -73,3 +73,3 @@ # Unsplash

```js
let authenticationUrl = unsplash.auth.getAuthenticationUrl([
const authenticationUrl = unsplash.auth.getAuthenticationUrl([
"public",

@@ -137,3 +137,3 @@ "read_user",

```js
let authenticationUrl = unsplash.auth.getAuthenticationUrl([
const authenticationUrl = unsplash.auth.getAuthenticationUrl([
"public",

@@ -294,2 +294,23 @@ "read_user",

### users.collections(username, page, perPage)
Get a list of collections created by the user.
__Arguments__
| Argument | Type | Opt/Required | Notes |
|---|---|---|---|
|__`username`__|_string_|Required||
|__`page`__|_number_|Optional||
|__`perPage`__|_number_|Optional||
__Example__
```js
unsplash.users.collections("naoufal", 2, 15)
.then(toJson)
.then(json => {
// Your code
});
```
---
<div id="photos" />

@@ -766,3 +787,3 @@

let unsplash = new Unsplash({
const unsplash = new Unsplash({
applicationId: "{YOUR_APPLICATION_ID}",

@@ -769,0 +790,0 @@ secret: "{YOUR_SECRET_KEY}",

@@ -42,4 +42,18 @@ /* @flow */

});
},
collections: (username: string, page: number = 1, perPage: number = 10) => {
const url = `/users/${username}/collections`;
const query = {
page,
per_page: perPage
};
return this.request({
url,
method: "GET",
query
});
}
};
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc