Skip to content

Commit f864499

Browse files
author
Daniel Mackey
committed
Use #post, and include 'Lookups' in path for creating a lookup
The API docs provided use 'Lookups' as part of the path, and use the POST method.
1 parent 90fb5c9 commit f864499

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/telapi/carrier.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def list(optional_params = {})
1515
end
1616

1717
# Returns a Telapi::Carrier object given a phone number
18-
# See http://www.telapi.com/docs/api/rest/carrier-services/carrier-lookup/
18+
# See http://docs.telapi.com/v2/docs/carrier-lookup
1919
def lookup(phone_number)
2020
opts = { :PhoneNumber => phone_number }
21-
response = Network.get(['Carrier'], opts)
21+
response = Network.post(['Lookups', 'Carrier'], opts)
2222
Carrier.new(response)
2323
end
2424

0 commit comments

Comments
 (0)