unsplash-js update for version 6.0 (#40908)

* Update for unsplash API 6.0

* Update tests for unsplash-js 6.0
This commit is contained in:
Angus Russell
2019-12-16 11:32:02 +00:00
committed by Orta
parent fd17e5dad4
commit f9ab5155cb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for unsplash-js 5.0
// Type definitions for unsplash-js 6.0
// Project: https://github.com/unsplash/unsplash-js#readme
// Definitions by: Andrew Malikov <https://github.com/markupcode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -17,7 +17,7 @@ export default class Unsplash {
constructor(options: {
apiUrl?: string;
apiVersion?: string;
applicationId: string;
accessKey: string;
secret: string;
callbackUrl?: string;
bearerToken?: string;
+1 -1
View File
@@ -1,7 +1,7 @@
import Unsplash, { toJson } from "unsplash-js";
const unsplash = new Unsplash({
applicationId: "{APP_ACCESS_KEY}",
accessKey: "{APP_ACCESS_KEY}",
secret: "{APP_SECRET}"
});