From 13f43762f527c5ea5d1f17015c4dda24cb192d51 Mon Sep 17 00:00:00 2001 From: Oliver-Fish Date: Sat, 7 Jul 2018 13:48:30 +0200 Subject: [PATCH] Fixed failing calls to Lookup --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 84e1605..cc5baff 100644 --- a/client.go +++ b/client.go @@ -492,7 +492,7 @@ func (c *Client) Lookup(phoneNumber string, params *LookupParams) (*Lookup, erro path := LookupPath + "/" + phoneNumber + "?" + urlParams.Encode() lookup := &Lookup{} - if err := c.Request(lookup, http.MethodPost, path, nil); err != nil { + if err := c.Request(lookup, http.MethodGet, path, nil); err != nil { if err == ErrResponse { return lookup, err }