From 6a4c5cfdede007398317067cd1be93ccdfa41ba9 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Thu, 6 Aug 2015 19:11:05 +0200 Subject: [PATCH] Minor --- api/test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/test.php b/api/test.php index ecb6fd5..958e1c6 100644 --- a/api/test.php +++ b/api/test.php @@ -5,13 +5,13 @@ require_once("../includes/DB.php"); define("API_URL", 'http://inside.dev'); /* cardnumber.php */ -function test_post_cardnumber() { +function test_post_card() { $data = json_encode(array( 'user_id' => '1', 'card_number' => '123456789' )); - $ch = curl_init(API_URL.'/api/cardnumber.php?apikey='.USER_API_KEY_KASSA); + $ch = curl_init(API_URL.'/api/card.php?apikey='.USER_API_KEY_KASSA); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -27,4 +27,4 @@ function test_post_cardnumber() { curl_close ($ch); } -test_post_cardnumber(); \ No newline at end of file +test_post_card(); \ No newline at end of file