Skip to content

Commit 79e71fd

Browse files
committed
Added genre parameter and updated entities_linked example
1 parent 9bc249a commit 79e71fd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/entities_linked.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var endpoint = "entities";
1515

1616
api.parameters.content = "Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.";
1717
api.parameters.linked = true;
18+
api.parameters.genre = "social-media";
1819

1920
api.rosette(endpoint, function(err, res){
2021
if(err){

lib/parameters.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function parameters() {
4343
this.contentUri = null;
4444
this.language = null;
4545
this.documentFile = null;
46+
this.genre = null;
4647

4748
// name matching parameters
4849
this.name1 = null;
@@ -84,6 +85,7 @@ parameters.prototype.loadParams = function() {
8485
"contentUri": this.contentUri,
8586
"language": this.language,
8687
"documentFile": this.documentFile,
88+
"genre": this.genre,
8789
"name1": this.name1,
8890
"name2": this.name2,
8991
"name": this.name,

0 commit comments

Comments
 (0)