diff --git a/examples/international-autocomplete-api/main.go b/examples/international-autocomplete-api/main.go index 4f814a5..b55d981 100644 --- a/examples/international-autocomplete-api/main.go +++ b/examples/international-autocomplete-api/main.go @@ -25,9 +25,9 @@ func main() { // https://smartystreets.com/docs/cloud/us-autocomplete-api#http-request-input-fields lookup := &international_autocomplete.Lookup{ - Country: "FRA", - AddressID: "OS0DMy8DPgNNTUpGTEhHAyA5LTo", - Locality: "Paris", + Country: "FRA", + Search: "Louis", + Locality: "Paris", } if err := client.SendLookupWithContext(context.Background(), lookup); err != nil { diff --git a/international-autocomplete-api/client.go b/international-autocomplete-api/client.go index 75a5a3d..6e2d812 100644 --- a/international-autocomplete-api/client.go +++ b/international-autocomplete-api/client.go @@ -57,4 +57,4 @@ func buildRequest(lookup *Lookup) *http.Request { } // TODO support /lookup and /v2/lookup -const suggestURL = "/v2/lookup" // Remaining parts will be completed later by the sdk.BaseURLClient. +const suggestURL = "/lookup" // Remaining parts will be completed later by the sdk.BaseURLClient. diff --git a/international-autocomplete-api/client_test.go b/international-autocomplete-api/client_test.go index e967251..488a5e5 100644 --- a/international-autocomplete-api/client_test.go +++ b/international-autocomplete-api/client_test.go @@ -128,8 +128,8 @@ func (f *ClientFixture) TestAddressIDAppendsToURL() { f.So(f.sender.request, should.NotBeNil) f.So(f.sender.request.Method, should.Equal, "GET") - f.So(f.sender.request.URL.Path, should.Equal, suggestURL+"/"+f.input.AddressID) - f.So(f.sender.request.URL.String(), should.Equal, suggestURL+"/"+f.input.AddressID+"?country=FRA&max_results=5") + f.So(f.sender.request.URL.Path, should.Equal, suggestURL+"/thisisid") + f.So(f.sender.request.URL.String(), should.Equal, suggestURL+"/thisisid?country=FRA&max_results=5") } ////////////////////////////////////////////////////////////////// diff --git a/wireup/options.go b/wireup/options.go index 7766c4f..4ed9f5a 100644 --- a/wireup/options.go +++ b/wireup/options.go @@ -1,11 +1,11 @@ package wireup import ( - international_autocomplete_deprecated "github.com/smartystreets/smartystreets-go-sdk/international-autocomplete-api-deprecated" "net/http" "time" international_autocomplete "github.com/smartystreets/smartystreets-go-sdk/international-autocomplete-api" + international_autocomplete_deprecated "github.com/smartystreets/smartystreets-go-sdk/international-autocomplete-api-deprecated" international_street "github.com/smartystreets/smartystreets-go-sdk/international-street-api" "github.com/smartystreets/smartystreets-go-sdk/us-autocomplete-api" autocomplete_pro "github.com/smartystreets/smartystreets-go-sdk/us-autocomplete-pro-api"