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

Commit 5980988

Browse files
committed
Merge pull request #2 from hostinger/fix/api-urls
Update API urls
2 parents 078a7ed + 01118b4 commit 5980988

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

WebhostApi.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function reviewCreate($domain, $review, $name, $email, $rating){
3737
'rating' => $rating
3838
];
3939

40-
return $this->make_call('review/'.$domain, 'POST', $params);
40+
return $this->make_call('/v1/review/'.$domain, 'POST', $params);
4141
}
4242

4343
/**
@@ -54,7 +54,7 @@ public function recommend($name, $emailFrom, $emailsTo){
5454
'to' => $emailsTo
5555
];
5656

57-
return $this->make_call('/recommend', 'POST', $params);
57+
return $this->make_call('/v1/recommend', 'POST', $params);
5858
}
5959

6060
/**
@@ -73,7 +73,7 @@ public function reportAbuse($url, $name, $email, $message){
7373
'message' => $message
7474
];
7575

76-
return $this->make_call('/report-abuse', 'POST', $params);
76+
return $this->make_call('/v1/report-abuse', 'POST', $params);
7777
}
7878

7979
/**
@@ -87,7 +87,7 @@ public function userLogin($email, $password){
8787
'email' => $email,
8888
'password' => $password
8989
];
90-
return $this->make_call('/user/login', 'POST', $params);
90+
return $this->make_call('/v1/user/login', 'POST', $params);
9191
}
9292

9393
/**
@@ -101,7 +101,7 @@ public function affiliateLogin($email, $password){
101101
'email' => $email,
102102
'password' => $password
103103
];
104-
return $this->make_call('/affiliate/login', 'POST', $params);
104+
return $this->make_call('/v1/affiliate/login', 'POST', $params);
105105
}
106106

107107
/**
@@ -123,7 +123,7 @@ public function userSignup($name, $email, $password, $domainType, $domain, $subd
123123
'domain' => $domain,
124124
'subdomain' => $subdomain,
125125
];
126-
return $this->make_call('/user/signup','POST',$params);
126+
return $this->make_call('/v1/user/signup','POST',$params);
127127
}
128128

129129
/**
@@ -139,7 +139,7 @@ public function affiliateSignup($name,$email,$password){
139139
'email' => $email,
140140
'password' => $password,
141141
];
142-
return $this->make_call('/affiliate/signup','POST',$params);
142+
return $this->make_call('/v1/affiliate/signup','POST',$params);
143143
}
144144

145145
/**

0 commit comments

Comments
 (0)