From e7abebebf3d84a6747c6f5ffa84261c1123463a1 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 2 Apr 2019 09:17:13 +0100 Subject: [PATCH] Pass API correct attribute to search inbound SMS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s `phone_number` here: https://github.com/alphagov/notifications-api/blob/1250e47cc7c34356f33079a7490c8e548ebd0f3f/app/inbound_sms/rest.py#L33 --- app/notify_client/service_api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notify_client/service_api_client.py b/app/notify_client/service_api_client.py index 98fcdec04..b2242ae1a 100644 --- a/app/notify_client/service_api_client.py +++ b/app/notify_client/service_api_client.py @@ -297,7 +297,7 @@ class ServiceAPIClient(NotifyAdminAPIClient): '/service/{}/inbound-sms'.format( service_id, ), - data={'user_number': user_number} + data={'phone_number': user_number} ) def get_most_recent_inbound_sms(self, service_id, page=None):