smartystreets-javascript-sdk
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index"); | ||
let authToken = process.env.SMARTY_AUTH_TOKEN; | ||
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken); | ||
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken)); | ||
let client = clientBuilder.buildInternationalStreetClient(); | ||
let client = SmartyStreetsCore.buildClient.internationalStreet(credentials); | ||
@@ -12,0 +12,0 @@ // Documentation for input fields can be found at: |
@@ -6,11 +6,10 @@ const SmartyStreetsSDK = require("../index"); | ||
let websiteKey = "put your website key here."; | ||
const credentials = new SmartyStreetsCore.SharedCredentials(websiteKey); | ||
// let authId = process.env.SMARTY_AUTH_ID; | ||
// let authToken = process.env.SMARTY_AUTH_TOKEN; | ||
// const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken); | ||
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.SharedCredentials(websiteKey)); | ||
// let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken)); | ||
let client = SmartyStreetsCore.buildClient.usAutocomplete(credentials); | ||
let client = clientBuilder.buildUsAutocompleteClient(); | ||
// Documentation for input fields can be found at: | ||
@@ -17,0 +16,0 @@ // https://smartystreets.com/docs/cloud/us-autocomplete-api#http-request-input-fields |
@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index"); | ||
let authToken = process.env.SMARTY_AUTH_TOKEN; | ||
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken); | ||
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken)); | ||
let client = clientBuilder.buildUsExtractClient(); | ||
let client = SmartyStreetsCore.buildClient.usExtract(credentials); | ||
@@ -12,0 +12,0 @@ // Documentation for input fields can be found at: |
@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index"); | ||
let authToken = process.env.SMARTY_AUTH_TOKEN; | ||
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken); | ||
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken)); | ||
let client = clientBuilder.buildUsStreetApiClient(); | ||
let client = SmartyStreetsCore.buildClient.usStreet(credentials); | ||
@@ -12,0 +12,0 @@ // Documentation for input fields can be found at: |
@@ -7,5 +7,5 @@ const SmartyStreetsSDK = require("../index"); | ||
let authToken = process.env.SMARTY_AUTH_TOKEN; | ||
const credentials = new SmartyStreetsCore.StaticCredentials(authId, authToken); | ||
let clientBuilder = new SmartyStreetsCore.ClientBuilder(new SmartyStreetsCore.StaticCredentials(authId, authToken)); | ||
let client = clientBuilder.buildUsZipcodeClient(); | ||
let client = SmartyStreetsCore.buildClient.usZipcode(credentials); | ||
@@ -12,0 +12,0 @@ // Documentation for input fields can be found at: |
@@ -5,2 +5,3 @@ module.exports = { | ||
ClientBuilder: require("./src/ClientBuilder"), | ||
buildClient: require("./src/util/buildClients"), | ||
SharedCredentials: require("./src/SharedCredentials"), | ||
@@ -7,0 +8,0 @@ StaticCredentials: require("./src/StaticCredentials"), |
{ | ||
"name": "smartystreets-javascript-sdk", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Quick and easy SmartyStreets address validation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135089
71
2988