-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Max/custom parameters #98
Conversation
examples/international_street.js
Outdated
@@ -1,4 +1,4 @@ | |||
const SmartySDK = require("smartystreets-javascript-sdk"); | |||
const SmartySDK = require("../dist/cjs/index.cjs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right import?
|
||
await handleRequest(lookup1) | ||
await handleRequest(lookup2) | ||
// lookup1.addCustomParameter("input_id", 1234); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these supposed to be commented?
examples/international_street.js
Outdated
|
||
function displayResult(result) { | ||
console.log(result.result[0].components); | ||
// console.log(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line?
examples/us_autocomplete_pro.js
Outdated
@@ -36,14 +40,14 @@ lookup.preferStates = ["IL"]; | |||
lookup.preferRatio = 33; | |||
lookup.source = "all"; | |||
|
|||
await handleRequest(lookup, "Using Filter and Prefer"); | |||
// await handleRequest(lookup, "Using Filter and Prefer"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these supposed to be commented?
examples/us_enrichment.js
Outdated
@@ -1,4 +1,4 @@ | |||
const SmartySDK = require("smartystreets-javascript-sdk"); | |||
const SmartySDK = require("../dist/cjs/index.cjs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right import?
examples/us_extract.js
Outdated
@@ -1,15 +1,11 @@ | |||
const SmartySDK = require("smartystreets-javascript-sdk"); | |||
const SmartySDK = require("../dist/cjs/index.cjs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right import?
examples/us_extract.js
Outdated
|
||
// for client-side requests (browser/mobile), use this code: | ||
let key = process.env.SMARTY_EMBEDDED_KEY; | ||
const credentials = new SmartyCore.SharedCredentials(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we supposed to remove these lines?
examples/us_zipcode.js
Outdated
@@ -1,4 +1,4 @@ | |||
const SmartySDK = require("smartystreets-javascript-sdk"); | |||
const SmartySDK = require("../dist/cjs/index.cjs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right import?
examples/us_zipcode.js
Outdated
@@ -8,7 +8,7 @@ const Lookup = SmartySDK.usZipcode.Lookup; | |||
// const credentials = new SmartyCore.StaticCredentials(authId, authToken); | |||
|
|||
// for client-side requests (browser/mobile), use this code: | |||
let key = process.env.SMARTY_EMBEDDED_KEY; | |||
let key = "your key"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason we aren't using the env file now?
ClickUp: https://app.clickup.com/t/86b2rzrpy
To test: the examples are set up in a way to test with a single address, just plug in your secret key. I'll make sure to revert the examples this time.