Skip to content

Commit 7d53ed6

Browse files
author
Chris Park
committed
Updated examples
- Also fixed a small bug in Api.js that was referencing the wrong service url
1 parent 740f9f5 commit 7d53ed6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/relationships.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var args = parser.parseArgs();
1414
var api = new Api(args.key, args.url);
1515
var endpoint = "relationships";
1616

17-
var relationships_text_data = "The Ghostbusters movie was filmed in Boston.";
17+
var relationships_text_data = "Bill Gates, Microsoft's former CEO, is a philanthropist.";
1818
var content = relationships_text_data;
1919

2020
api.parameters.content = content;

examples/syntax_dependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var args = parser.parseArgs();
1313

1414
var api = new Api(args.key, args.url);
1515
var endpoint = "syntax_dependencies";
16-
var syntax_dependencies_data = "Sony Pictures is planning to shoot a good portion of the new \"Ghostbusters\" in Boston as well.";
16+
var syntax_dependencies_data = "Yoshinori Ohsumi, a Japanese cell biologist, was awarded the Nobel Prize in Physiology or Medicine on Monday.";
1717

1818
api.parameters.content = syntax_dependencies_data;
1919
api.parameters.genre = "social-media";

lib/Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Api(userKey, serviceURL) {
8181
} else {
8282
this.serviceURL = "https://api.rosette.com/rest/v1/";
8383
}
84-
var urlParts = URL.parse(serviceURL);
84+
var urlParts = URL.parse(this.serviceURL);
8585
if (urlParts.protocol === "http:") {
8686
this.protocol = http;
8787
}

0 commit comments

Comments
 (0)