Post url
Create a new document - url
Parameters
Demo
URL Find your token on - yumpu.com Token
title url
Run request
Example:
curl -X POST -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "url=https://www.domain.com/filename.pdf" -d "title=My document title" "https://api.yumpu.com/2.0/document/url.json"
Example:
require_once('../yumpu.php');
$yumpu = new Yumpu();
$data = array(
'title' => 'My document title',
'url' => 'http://www.domain.com/filename.pdf',
);
$newDocument = $yumpu->postDocumentUrl($data);
print_r($newDocument);
Example:
var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
title: 'My document title',
url: 'http://www.domain.com/filename.pdf'
};
yumpu.postDocumentUrl(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Example:
Yumpu y = new Yumpu("your access token");
String[] params = {
"url=http://www.domain.com/filename.pdf",
"title=My document title"};
System.out.println(y.postDocumentUrl(params));
Whatever language you are using, the result will be the same.
{
"file": {
"url": "https://www.domain.com/filename.pdf",
"client_name": "suchparameter-google-uebersicht.pdf",
"size": "183.0 KB",
"mime_type": "application/pdf"
},
"document": {
"url": "https://www.domain.com/filename.pdf",
"title": "My document title"
},
"progress_id": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"state": "success",
"completed_in": 0.3786
}
Last updated