Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MP-Tsel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dzulfiqar Ridha
MP-Tsel
Commits
49789b61
Commit
49789b61
authored
Apr 04, 2019
by
Dzulfqar Ridha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
7ec3f7a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MasheryAPIClient.php
app/Http/Controllers/MasheryAPIClient.php
+3
-2
No files found.
app/Http/Controllers/MasheryAPIClient.php
View file @
49789b61
...
...
@@ -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
],
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment