Skip to content

Commit 1f3bde9

Browse files
committed
Remove withLicense in the examples. Rarely used edge case...
Add logger on by default in examples.
1 parent 8bcac0d commit 1f3bde9

16 files changed

+7
-186
lines changed

smarty-rust-sdk/examples/international_autocomplete_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
2323
);
2424

2525
let options = OptionsBuilder::new(Some(authentication))
26-
// The appropriate license values to be used for your subscriptions
27-
// can be found on the Subscriptions page of the account dashboard.
28-
// https://www.smartystreets.com/docs/cloud/licensing
29-
.with_license("international-autocomplete-v2-cloud")
26+
.with_logging()
3027
.build();
3128

3229
let client = InternationalAutocompleteClient::new(options)?;

smarty-rust-sdk/examples/international_street_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
2828
);
2929

3030
let options = OptionsBuilder::new(Some(authentication))
31-
// The appropriate license values to be used for your subscriptions
32-
// can be found on the Subscriptions page of the account dashboard.
33-
// https://www.smartystreets.com/docs/cloud/licensing
34-
.with_license("international-global-plus-cloud")
31+
.with_logging()
3532
.build();
3633

3734
let client = InternationalStreetClient::new(options)?;

smarty-rust-sdk/examples/logger.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
4242

4343
// Create the options from it's builder pattern
4444
let options = OptionsBuilder::new(Some(authentication))
45-
// The appropriate license values to be used for your subscriptions
46-
// can be found on the Subscriptions page the account dashboard.
47-
// https://www.smartystreets.com/docs/cloud/licensing
48-
.with_license("us-core-cloud")
4945
.with_logging()
5046
.with_retries(2)
5147
.build();

smarty-rust-sdk/examples/us_autocomplete_pro_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
2828
);
2929

3030
let options = OptionsBuilder::new(Some(authentication))
31-
// The appropriate license values to be used for your subscriptions
32-
// can be found on the Subscriptions page of the account dashboard.
33-
// https://www.smartystreets.com/docs/cloud/licensing
34-
.with_license("us-autocomplete-pro-cloud")
31+
.with_logging()
3532
.build();
3633

3734
let client = USAutocompleteProClient::new(options)?;

smarty-rust-sdk/examples/us_enrichment_api.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ async fn lookup<R: EnrichmentResponse>(key: u32) -> Result<(), Box<dyn Error>> {
4141
);
4242

4343
let options = OptionsBuilder::new(Some(authentication))
44-
// The appropriate license values to be used for your subscriptions
45-
// can be found on the Subscriptions page of the account dashboard.
46-
// https://www.smartystreets.com/docs/cloud/licensing
47-
.with_license(&format!("us-property-data-{}-cloud", R::lookup_type()))
4844
.with_logging()
4945
.build();
5046

smarty-rust-sdk/examples/us_extract_api.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
2828
);
2929

3030
let options = OptionsBuilder::new(Some(authentication))
31-
// The appropriate license values to be used for your subscriptions
32-
// can be found on the Subscriptions page of the account dashboard.
33-
// https://www.smartystreets.com/docs/cloud/licensing
34-
.with_license("us-core-cloud")
3531
.with_logging()
3632
.build();
3733

smarty-rust-sdk/examples/us_reverse_geo_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
2323
);
2424

2525
let options = OptionsBuilder::new(Some(authentication))
26-
// The appropriate license values to be used for your subscriptions
27-
// can be found on the Subscriptions page of the account dashboard.
28-
// https://www.smartystreets.com/docs/cloud/licensing
29-
.with_license("us-reverse-geocoding-cloud")
26+
.with_logging()
3027
.build();
3128

3229
let client = USReverseGeoClient::new(options)?;

smarty-rust-sdk/examples/us_street_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
3737
);
3838

3939
let options = OptionsBuilder::new(Some(authentication))
40-
// The appropriate license values to be used for your subscriptions
41-
// can be found on the Subscriptions page of the account dashboard.
42-
// https://www.smartystreets.com/docs/cloud/licensing
43-
.with_license("us-core-cloud")
40+
.with_logging()
4441
.build();
4542

4643
let client = USStreetAddressClient::new(options)?;

smarty-rust-sdk/examples/us_street_multithread.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
4343

4444
// Set Up The Options Here
4545
let options = OptionsBuilder::new(Some(authentication))
46-
// The appropriate license values to be used for your subscriptions
47-
// can be found on the Subscriptions page of the account dashboard.
48-
// https://www.smartystreets.com/docs/cloud/licensing
49-
.with_license("us-core-cloud")
5046
.with_logging()
5147
.build();
5248

smarty-rust-sdk/examples/us_zipcode_api.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
3333
);
3434

3535
let options = OptionsBuilder::new(Some(authentication))
36-
// The appropriate license values to be used for your subscriptions
37-
// can be found on the Subscriptions page of the account dashboard.
38-
// https://www.smartystreets.com/docs/cloud/licensing
39-
.with_license("us-core-cloud")
36+
.with_logging()
4037
.build();
4138

4239
let client = USZipcodeClient::new(options)?;

0 commit comments

Comments
 (0)