Skip to content

Commit d87e4ea

Browse files
committed
up
1 parent 65c124a commit d87e4ea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Graphcomment.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function registerUser($username, $email, $language = "en", $picture = '')
104104
"picture" => $picture // (optionnal) full url only
105105
);
106106

107-
$res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
107+
$res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
108108

109109
if ($res->getStatusCode() == "200") {
110110
return $res->getBody();
@@ -128,7 +128,7 @@ public function loginUser($gc_id)
128128
"gc_id" => $gc_id
129129
);
130130

131-
$res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
131+
$res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
132132

133133
return $res->getBody();
134134
}
@@ -148,7 +148,7 @@ public function getUser($gc_id)
148148
"gc_id" => $gc_id
149149
);
150150

151-
$res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
151+
$res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
152152

153153
return $res->getBody();
154154
}
@@ -184,7 +184,7 @@ public function updateUser($gc_id, $username, $email, $language, $picture)
184184
"picture" => $picture
185185
);
186186

187-
$res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
187+
$res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
188188

189189
return $res->getBody();
190190
}
@@ -201,7 +201,7 @@ public function deleteUser($gc_id)
201201
{
202202
$client = new Client();
203203

204-
$res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
204+
$res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
205205

206206
return $res->getBody();
207207
}
@@ -223,7 +223,7 @@ public function countComments($url, $uid='') {
223223
"uid" => $uid
224224
);
225225

226-
$res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
226+
$res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
227227

228228
return $res->getBody();
229229
}
@@ -236,7 +236,7 @@ public function countComments($url, $uid='') {
236236
public function exportComments() {
237237
$client = new Client();
238238

239-
$res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData('key')), ['http_errors' => false, 'timeout' => 5]);
239+
$res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData('key'), ['http_errors' => false, 'timeout' => 5]);
240240

241241
return $res->getBody();
242242
}
@@ -253,7 +253,7 @@ public function exportConfirmComments(Array $commentIds) {
253253

254254
$data = $commentIds;
255255

256-
$res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]);
256+
$res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
257257

258258
return $res->getBody();
259259
}

0 commit comments

Comments
 (0)