Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a0088f37
authored
2016-10-06 16:38:57 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ee
1 parent
b93823a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
a0088f3
...
...
@@ -14,6 +14,7 @@ Use PDF;
use
Illuminate\Support\Facades\Input
;
use
Intervention\Image\Facades\Image
;
use
Illuminate\Support\Facades\Facade
;
use
Illuminate\Support\Facades\Request
as
RequestGet
;
use
League\Flysystem\Filesystem
;
use
Curl\Curl
;
use
Google_Client
;
...
...
@@ -264,7 +265,7 @@ public function isGoogleFolderCreated($cust_id)
}
public
function
GoogleTokenCode
(
Request
$request
)
public
function
GoogleTokenCode
()
{
session_start
();
...
...
@@ -284,7 +285,7 @@ public function isGoogleFolderCreated($cust_id)
$client
->
setApprovalPrompt
(
'force'
);
$code
=
Request
::
get
(
'code'
);
$code
=
Request
Get
::
get
(
'code'
);
$client
->
authenticate
(
$code
);
$_SESSION
[
'token'
]
=
$client
->
getAccessToken
();
...
...
Please
register
or
sign in
to post a comment