Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Update API urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas Andriuskevicius committed May 13, 2016
1 parent dc58bb2 commit 01118b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions WebhostApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 01118b4

Please sign in to comment.