4
0
mirror of https://github.com/cwinfo/envayasms.git synced 2025-06-26 02:39:23 +00:00

set phone number and api version as regular post fields instead of custom http headers

This commit is contained in:
Jesse Young
2011-09-13 11:31:01 -07:00
parent e4cea3bae3
commit bead45360f
2 changed files with 22 additions and 11 deletions

View File

@ -18,7 +18,7 @@ class KalSMS
static function new_from_request()
{
$version = @$_SERVER['HTTP_X_KALSMS_VERSION'];
$version = @$_POST['version'];
return new KalSMS();
}
@ -56,7 +56,7 @@ class KalSMS
function get_request_phone_number()
{
return @$_SERVER['HTTP_X_KALSMS_PHONENUMBER'];
return @$_POST['phone_number'];
}
function is_validated_request($correct_password)