Commit 49789b61 authored by Dzulfqar Ridha's avatar Dzulfqar Ridha

updated

parent 7ec3f7a6
......@@ -13,7 +13,7 @@ Class MasheryAPIClient extends Controller
private $auth_secret;
public $accessToken;
public function __construct($key,$secret)
public function __construct($key, $secret)
{
$this->auth_key = $key;
$this->auth_secret = $secret;
......@@ -22,7 +22,8 @@ Class MasheryAPIClient extends Controller
$this->client = new Client([
'base_uri' => $this->API_URL,
'headers' => [
'Content-Type' => 'application/x-www-form-urlencoded'
'Content-Type' => 'application/x-www-form-urlencoded',
'Authorization' => 'Basic eTRhNXJ6NWNjdjM3NHF1MzM1NThmNjViOnl1WlJudkt2WVk='
],
'auth' => [$this->auth_key, $this->auth_secret],
]);
......
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