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
39ca8fdb
authored
2016-09-01 16:44:37 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
f24e58e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
39ca8fd
...
...
@@ -103,9 +103,10 @@ class ApiController extends Controller
$json
=
Input
::
all
();
$json
=
json_encode
(
$json
);
$json
=
json_decode
(
$json
);
$pdfLocation
=
$json
->
pdf
[
0
]
->
pdfLocation
;
$cust_id
=
$json
->
pdf
[
0
]
->
custId
;
...
...
@@ -144,8 +145,8 @@ class ApiController extends Controller
$pdf
=
$pdf
->
pdf
(
$pdfId
);
$response
=
$pdfId
;
$statusCode
=
200
;
$UploaqdPdf
=
new
GoogledriveuploadpdfController
();
$UploaqdPdf
->
google_drive_upload
(
$folder
,
'new_'
.
$pdfLocation
,
$pdfId
,
$cust_id
);
//
$UploaqdPdf = new GoogledriveuploadpdfController();
//
$UploaqdPdf->google_drive_upload($folder, 'new_'.$pdfLocation,$pdfId,$cust_id);
return
Response
::
json
(
$response
,
$statusCode
);
...
...
@@ -178,7 +179,18 @@ class ApiController extends Controller
return
Response
::
json
(
$response
,
$statusCode
);
}
public
function
getpdfgoogle
(
$json
)
public
function
getPdfPriev
(
$json
)
{
$rows
=
new
pdfModel
();
$rows
=
$rows
->
getpdf
(
$json
)
->
get
();
$response
=
$rows
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
);
}
public
function
getpdfgoogle
(
$json
)
{
$rows
=
new
pdfModel
();
...
...
Please
register
or
sign in
to post a comment