From eefc22302edaef49e41c0712b447eb3bd1572757 Mon Sep 17 00:00:00 2001 From: schklom <23263086+schklom@users.noreply.github.com> Date: Thu, 16 Jan 2025 01:09:24 +0000 Subject: [PATCH] update apilayer api https://blog.apilayer.com/how-to-create-a-phone-number-verification-web-app-using-node-js/#Review_the_Endpoint --- web/server_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/server_test.go b/web/server_test.go index b2fd7b83d..3b671ff30 100644 --- a/web/server_test.go +++ b/web/server_test.go @@ -142,8 +142,8 @@ func TestApi(t *testing.T) { } gock.New("https://api.apilayer.com"). - Get("/number_verification/validate"). - MatchHeader("Apikey", "5ad5554ac240e4d3d31107941b35a5eb"). + Get("/api/validate"). + MatchParam("access_key", "5ad5554ac240e4d3d31107941b35a5eb"). MatchParam("number", number). Reply(200). JSON(expectedResult) @@ -173,8 +173,8 @@ func TestApi(t *testing.T) { } gock.New("https://api.apilayer.com"). - Get("/number_verification/validate"). - MatchHeader("Apikey", "5ad5554ac240e4d3d31107941b35a5eb"). + Get("/api/validate"). + MatchParam("access_key", "5ad5554ac240e4d3d31107941b35a5eb"). MatchParam("number", number). Reply(429). JSON(expectedResult)