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
7ae1647d
authored
2016-07-20 09:18:40 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
9d6ab613
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
7ae1647
...
...
@@ -5,7 +5,7 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
App\Http\Requests
;
use
App\Http\Controllers
;
use
App\pdfModel
;
use
App\pdfModel
;
use
URL
;
use
Storage
;
use
Response
;
...
...
@@ -18,20 +18,11 @@ use League\Flysystem\Filesystem;
use
Curl\Curl
;
use
Google_Client
;
use
Google_Service_Drive
;
use
Imagick
;
class
GoogledriveuploadpdfController
extends
Controller
{
...
...
@@ -43,18 +34,19 @@ class GoogledriveuploadpdfController extends Controller
$client
=
new
\Google_Client
();
$client
->
setScopes
(
array
(
'https://www.googleapis.com/auth/drive.file'
));
$client
->
setClientId
(
'2
147483647
'
);
$client
->
setClientId
(
'2
06523860143-kgs80emhfm1sof79nggd48gnhbl1j6ei.apps.googleusercontent.com
'
);
$client
->
setClientSecret
(
'qmUMAi09SU4wU4R3uOkvsiwK'
);
$client
->
setRedirectUri
(
'http://pdf-customizer.synapsus.co/auth/google/callback'
);
// error_log(print_r($client,true));
$dr_service
=
new
\Google_Service_Drive
(
$client
);
//error_log(print_r($dr_service ,true));
$file
=
new
\Google_Service_Drive_DriveFile
();
...
...
@@ -66,7 +58,7 @@ class GoogledriveuploadpdfController extends Controller
$datetime
=
date
(
'd-m-y-h:s'
);
$file
->
setTitle
(
$datetime
.
$filetitle
);
//$file->setDescription($filedescription
);
$file
->
setDescription
(
''
);
$file
->
setMimeType
(
$mimetype
);
$data
=
$pdfFile
;
...
...
@@ -78,13 +70,9 @@ class GoogledriveuploadpdfController extends Controller
));
}
public
function
handle
Provider
Callback
()
public
function
handle
Google
Callback
()
{
...
...
Please
register
or
sign in
to post a comment