From 01118b4b0ae56ecaae2df2531ee45606c13a3f2a Mon Sep 17 00:00:00 2001 From: Martynas Andriuskevicius Date: Fri, 13 May 2016 15:48:34 +0300 Subject: [PATCH] Update API urls --- WebhostApi.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/WebhostApi.php b/WebhostApi.php index 8e34255..4331f15 100644 --- a/WebhostApi.php +++ b/WebhostApi.php @@ -37,7 +37,7 @@ public function reviewCreate($domain, $review, $name, $email, $rating){ 'rating' => $rating ]; - return $this->make_call('review/'.$domain, 'POST', $params); + return $this->make_call('/v1/review/'.$domain, 'POST', $params); } /** @@ -54,7 +54,7 @@ public function recommend($name, $emailFrom, $emailsTo){ 'to' => $emailsTo ]; - return $this->make_call('/recommend', 'POST', $params); + return $this->make_call('/v1/recommend', 'POST', $params); } /** @@ -73,7 +73,7 @@ public function reportAbuse($url, $name, $email, $message){ 'message' => $message ]; - return $this->make_call('/report-abuse', 'POST', $params); + return $this->make_call('/v1/report-abuse', 'POST', $params); } /** @@ -87,7 +87,7 @@ public function userLogin($email, $password){ 'email' => $email, 'password' => $password ]; - return $this->make_call('/user/login', 'POST', $params); + return $this->make_call('/v1/user/login', 'POST', $params); } /** @@ -101,7 +101,7 @@ public function affiliateLogin($email, $password){ 'email' => $email, 'password' => $password ]; - return $this->make_call('/affiliate/login', 'POST', $params); + return $this->make_call('/v1/affiliate/login', 'POST', $params); } /** @@ -123,7 +123,7 @@ public function userSignup($name, $email, $password, $domainType, $domain, $subd 'domain' => $domain, 'subdomain' => $subdomain, ]; - return $this->make_call('/user/signup','POST',$params); + return $this->make_call('/v1/user/signup','POST',$params); } /** @@ -139,7 +139,7 @@ public function affiliateSignup($name,$email,$password){ 'email' => $email, 'password' => $password, ]; - return $this->make_call('/affiliate/signup','POST',$params); + return $this->make_call('/v1/affiliate/signup','POST',$params); } /**