Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkho committed Jun 16, 2020
2 parents 03ae0c8 + bbbb772 commit ca4fc7e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_js:
- "10"
- "11"
- "12"
- "13"
before_install:
- npm install -g npm
before_script:
Expand Down
14 changes: 7 additions & 7 deletions examples/address_similarity.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ var args = parser.parseArgs();
var api = new Api(args.key, args.url);
var endpoint = "addressSimilarity";

api.parameters.address1 = {"city": "Cambridge"}
api.parameters.address2 = {"city": "cambridge", "state": "ma"}
api.parameters.address1 = {"houseNumber": "1600", "road": "Pennsylvania Ave NW", "city": "Washington", "state": "DC", "postCode": "20500"}
api.parameters.address2 = "160 Pennsilvana Avenue, Washington, D.C., 20500"

api.rosette(endpoint, function(err, res){
if(err){
console.log(err);
} else {
console.log(JSON.stringify(res, null, 2));
}
if(err){
console.log(err);
} else {
console.log(JSON.stringify(res, null, 2));
}
});
12 changes: 6 additions & 6 deletions examples/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ var args = parser.parseArgs();
var api = new Api(args.key, args.url);
var endpoint = "categories";

var categories_url_data = "https://onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/";
var categories_url_data = "https://onlocationvacations.com/2018/02/06/downton-abbey-exhibition-extended-april-2-nyc/";
api.parameters.contentUri = categories_url_data;

api.rosette(endpoint, function(err, res){
if(err){
console.log(err);
} else {
console.log(JSON.stringify(res, null, 2));
}
if(err){
console.log(err);
} else {
console.log(JSON.stringify(res, null, 2));
}
});
2 changes: 1 addition & 1 deletion lib/rosetteRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var querystring = require('querystring');
*
* @type string
*/
var BINDING_VERSION = "1.14.3";
var BINDING_VERSION = "1.14.4";
var USER_AGENT = "rosetteapinode/" + BINDING_VERSION + "/" + process.version;

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rosette-api",
"version": "1.14.3",
"version": "1.14.4",
"description": "Rosette API Node.js client SDK",
"main": "index",
"directories": {
Expand Down

0 comments on commit ca4fc7e

Please sign in to comment.