Skip to content

Commit 6fc8b44

Browse files
committed
Updating JavaScript SDK
1 parent afa0a23 commit 6fc8b44

302 files changed

Lines changed: 614 additions & 624 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These classes call the API in the same way that direct REST calls do.
66
You can use this SDK to search for media, get information about media and about collections, and (if your subscription permits) license and download media.
77
This is the official SDK provided by Shutterstock for its API.
88

9-
- API version: 1.2.0
9+
- API version: 1.3.0
1010

1111
## References
1212

docs/SoundEffectsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ sstk.setAccessToken(process.env.SHUTTERSTOCK_API_TOKEN);
9494

9595
const api = new sstk.SoundEffectsApi();
9696

97-
const id = 442583; // Number | Audio track ID
97+
const id = "442583"; // String | Audio track ID
9898

9999
const queryParams = {
100100
'language': "language_example", // String | Language for the keywords and categories in the response
@@ -118,7 +118,7 @@ api.getSfxDetails(id, queryParams)
118118

119119
Name | Type | Description
120120
------------- | ------------- | -------------
121-
id (required) | Number| Audio track ID
121+
id (required) | String| Audio track ID
122122
language | String| Language for the keywords and categories in the response <br/><br/>Valid values: "ar", "bg", "bn", "cs", "da", "de", "el", "en", "es", "fi", "fr", "gu", "he", "hi", "hr", "hu", "id", "it", "ja", "kn", "ko", "ml", "mr", "nb", "nl", "or", "pl", "pt", "ro", "ru", "sk", "sl", "sv", "ta", "te", "th", "tr", "uk", "ur", "vi", "zh", "zh-Hant"
123123
view | String| Amount of detail to render in the response, defaults to minimal <br/><br/>Valid values: "minimal", "full"
124124
library | String| Which library to fetch from <br/><br/>Valid values: "shutterstock", "premier", "premiumbeat"

docs/VideosApi.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,10 +1337,8 @@ const queryParams = {
13371337
'category': "category_example", // String | Show videos with the specified Shutterstock-defined category; specify a category name or ID
13381338
'contributor': ["[12345678]"], // [String] | Show videos with the specified artist names or IDs
13391339
'contributor_country': ["US"], // [String] | Show videos from contributors in one or more specified countries
1340-
'duration': 56, // Number | (Deprecated; use duration_from and duration_to instead) Show videos with the specified duration in seconds
13411340
'duration_from': 60, // Number | Show videos with the specified duration or longer in seconds
13421341
'duration_to': 180, // Number | Show videos with the specified duration or shorter in seconds
1343-
'fps': 8.14, // Number | (Deprecated; use fps_from and fps_to instead) Show videos with the specified frames per second
13441342
'fps_from': 24, // Number | Show videos with the specified frames per second or more
13451343
'fps_to': 60, // Number | Show videos with the specified frames per second or fewer
13461344
'keyword_safe_search': true, // Boolean | Hide results with potentially unsafe keywords
@@ -1384,10 +1382,8 @@ Name | Type | Description
13841382
category | String| Show videos with the specified Shutterstock-defined category; specify a category name or ID
13851383
contributor | [String]| Show videos with the specified artist names or IDs
13861384
contributor_country | [String]| Show videos from contributors in one or more specified countries
1387-
duration | Number| (Deprecated; use duration_from and duration_to instead) Show videos with the specified duration in seconds
13881385
duration_from | Number| Show videos with the specified duration or longer in seconds
13891386
duration_to | Number| Show videos with the specified duration or shorter in seconds
1390-
fps | Number| (Deprecated; use fps_from and fps_to instead) Show videos with the specified frames per second
13911387
fps_from | Number| Show videos with the specified frames per second or more
13921388
fps_to | Number| Show videos with the specified frames per second or fewer
13931389
keyword_safe_search | Boolean| Hide results with potentially unsafe keywords, defaults to true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shutterstock-api",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "The Shutterstock API provides access to Shutterstock's library of media as well as information about customers accounts and the contributors that provide the media",
55
"license": "MIT",
66
"main": "src/index.js",

src/ApiClient.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* @module ApiClient
35-
* @version 1.2.0
35+
* @version 1.3.0
3636
*/
3737

3838
/**
@@ -64,8 +64,8 @@
6464
* @default {}
6565
*/
6666
this.defaultHeaders = {
67-
'User-Agent': 'public-api-sdk-generator/1.2.0',
68-
'x-shutterstock-application': 'shutterstock-sdk/v1.2.0',
67+
'User-Agent': 'public-api-sdk-generator/1.3.0',
68+
'x-shutterstock-application': 'shutterstock-sdk/v1.3.0',
6969
};
7070

7171
/**

src/api/AudioApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -33,7 +33,7 @@
3333
/**
3434
* Audio service.
3535
* @module api/AudioApi
36-
* @version 1.2.0
36+
* @version 1.3.0
3737
*/
3838

3939
/**
@@ -48,7 +48,7 @@
4848

4949
this.setAppName = function (value) {
5050
this.apiClient.defaultHeaders = Object.assign({}, this.apiClient.defaultHeaders, {
51-
'x-shutterstock-application': value + ',shutterstock-sdk/v1.2.0',
51+
'x-shutterstock-application': value + ',shutterstock-sdk/v1.3.0',
5252
});
5353
};
5454

src/api/CatalogApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -33,7 +33,7 @@
3333
/**
3434
* Catalog service.
3535
* @module api/CatalogApi
36-
* @version 1.2.0
36+
* @version 1.3.0
3737
*/
3838

3939
/**
@@ -48,7 +48,7 @@
4848

4949
this.setAppName = function (value) {
5050
this.apiClient.defaultHeaders = Object.assign({}, this.apiClient.defaultHeaders, {
51-
'x-shutterstock-application': value + ',shutterstock-sdk/v1.2.0',
51+
'x-shutterstock-application': value + ',shutterstock-sdk/v1.3.0',
5252
});
5353
};
5454

src/api/ComputerVisionApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -33,7 +33,7 @@
3333
/**
3434
* ComputerVision service.
3535
* @module api/ComputerVisionApi
36-
* @version 1.2.0
36+
* @version 1.3.0
3737
*/
3838

3939
/**
@@ -48,7 +48,7 @@
4848

4949
this.setAppName = function (value) {
5050
this.apiClient.defaultHeaders = Object.assign({}, this.apiClient.defaultHeaders, {
51-
'x-shutterstock-application': value + ',shutterstock-sdk/v1.2.0',
51+
'x-shutterstock-application': value + ',shutterstock-sdk/v1.3.0',
5252
});
5353
};
5454

src/api/ContributorsApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -33,7 +33,7 @@
3333
/**
3434
* Contributors service.
3535
* @module api/ContributorsApi
36-
* @version 1.2.0
36+
* @version 1.3.0
3737
*/
3838

3939
/**
@@ -48,7 +48,7 @@
4848

4949
this.setAppName = function (value) {
5050
this.apiClient.defaultHeaders = Object.assign({}, this.apiClient.defaultHeaders, {
51-
'x-shutterstock-application': value + ',shutterstock-sdk/v1.2.0',
51+
'x-shutterstock-application': value + ',shutterstock-sdk/v1.3.0',
5252
});
5353
};
5454

src/api/EditorialImagesApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Shutterstock API Reference
33
* The Shutterstock API provides access to Shutterstock's library of media, as well as information about customers' accounts and the contributors that provide the media.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
*
77
* NOTE: This class is auto generated by the swagger code generator program.
88
* https://github.com/swagger-api/swagger-codegen.git
@@ -33,7 +33,7 @@
3333
/**
3434
* EditorialImages service.
3535
* @module api/EditorialImagesApi
36-
* @version 1.2.0
36+
* @version 1.3.0
3737
*/
3838

3939
/**
@@ -48,7 +48,7 @@
4848

4949
this.setAppName = function (value) {
5050
this.apiClient.defaultHeaders = Object.assign({}, this.apiClient.defaultHeaders, {
51-
'x-shutterstock-application': value + ',shutterstock-sdk/v1.2.0',
51+
'x-shutterstock-application': value + ',shutterstock-sdk/v1.3.0',
5252
});
5353
};
5454

0 commit comments

Comments
 (0)