How to get VeryPDF Cloud API Response?

Hi,

Below is my API call, and the response. How do I get just the [OUTPUT]?
 
Call url: http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXXXXX&app=ViewAsPDFPaper&infile=https://www.XXXXXX.io/api/file/eCXxakiCTl6c4qYFWXZs?type=.docx&outfile=out.pdf
 
Response:
VeryPDF Document Viewer
body {background: none repeat scroll 0 0 #EDEDED;}
[ViewAsPDFPaper] http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/XXX/api/20131025-145246-2130335379-out.pdf
[iframe Embed Code] [Output] http://online.verypdf.com/u/XXXX/api/20131025-145246-2130335379-out.pdf
 
Customer
----------------------------------------------------
As clarification, how to I get just the [Output] in the response? I can parse it out but would prefer not to.
 
Customer
----------------------------------------------------
Thanks for leaving a message for us.
 
Please input the URL of PDF in browser then you can download the converted PDF.
 
VeryPDF
----------------------------------------------------
I'm using the API. Most API's I use respond with a JSON encoded response that can be filtered via an array. Are you guys planning to do this?
 
Customer
----------------------------------------------------
Thanks for your message, you can execute following URL by curl_exec() or file_get_contents() or other functions from your PHP code, you can also use similar functions from C# or ASP.NET or other program languages,
 
http://online.verypdf.com/api/?apikey=XXXXXXXXXXXXXXXXXXX
&app=ViewAsPDFPaper&infile=https://www.XXXXX.io/api/file/eCXxakiCTl6c4qYFWXZs?type=.docx&outfile=out.pdf
 
you will get following return HTML code,
+++++++++++++++++++++++++++++++++++++++
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>VeryPDF Document Viewer</title>
<style type="text/css">
body {background: none repeat scroll 0 0 #EDEDED;}
</style>
</head>
<body>
<div style="width:70%;min-width:800px;margin:8px auto 0;font-size:12px; background-color:#ffffff;-moz-border-radius: 10px;-webkit-border-radius: 10px; border-radius: 10px;padding:15px 15px; -moz-box-shadow: 3px 3px 4px #CCCCCC; -webkit-box-shadow: 3px 3px 4px #CCCCCC; box-shadow: 3px 3px 4px #CCCCCC;">
<iframe src="http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf" width="100%" height="600px"></iframe><br><br>
[ViewAsPDFPaper] http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf<br>
[iframe Embed Code] &lt;iframe src=&quot;http://online.verypdf.com/app/reader/?url=http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf&quot; width=&quot;100%&quot; height=&quot;600px&quot;&gt;&lt;/iframe&gt;<br><br>
 
<div style="clear:both;"></div>
</div>
</body>
</html>
 [Output] http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf<br>
+++++++++++++++++++++++++++++++++++++++
 
You can simple find "[Output] " string and extract subsequent PDF URL, you can download it to your local server by wget or other functions, e.g.,
 
wget http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf
 
after you downloaded the PDF file, you can use curl_exec() to delete this PDF file from VeryPDF Server, e.g.,
 
http://online.verypdf.com/api/?apikey=XXXX&app=deletefile
&infile=http://online.verypdf.com/u/XXXX/api/20131026-015514-522455580-out.pdf
 
Please refer to "deletefile" API from following web page,
 
http://www.verypdf.com/wordpress/201309/verypdf-cloud-api-app-name-deletefile-delete-temporary-files-and-convert-pdf-files-to-as3-swf-files-38685.html

 
OK, you can get the converted PDF file now.
 
If you encounter any problem, please feel free to let us know, we are glad to assist you asap.
 
VeryPDF
----------------------------------------------------
 

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in VeryPDF Cloud API and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!