Commit f1aeb711 authored by Max Koder's avatar Max Koder

[FIX] Debug

parent fd6c7628
......@@ -115,7 +115,6 @@ class HttpRequest
die( 'Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl));
}
curl_close($curl);
var_dump($response);
if ($response !== false) {
$json = json_decode($response, true);
......@@ -180,10 +179,8 @@ class HttpRequest
*/
protected function getOpts($method, $url, $headers, $params)
{
var_dump($headers);
if (isset($headers['Authorization'])) {
$params['access_token'] = str_replace('Bearer ', '', $headers['Authorization']);
echo $params['access_token'];
}
if ($method === 'GET' && !empty($params)) {
$url .= '?' . $this->encodeParameters($params);
......
......@@ -414,7 +414,6 @@ class TootoPHP
protected function authUser($userName = null, $password = null)
{
if (!empty($userName) && !empty($password)) {
var_dump($this->appCredentials);
if (is_array($this->appCredentials) && isset($this->appCredentials['client_id'])) {
// Get authentified token
$token = $this->http->post(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment