A
A
API
Search…
Post

Create a new access tag

Parameters:

Name
Optional / Required
Data type
Description
Default
name
required
String
min. 1 characters, max. 50 characters
description
required
String
min. 1 characters, max. 255 characters
default
optional
String
yes or no (y or n)
n
iap
optional
String
yes or no (y or n)
n
kiosks
optional
String
One or multiple kiosk ids (webkiosk_123 or webkiosk_123,appkiosk_456), values must start with webkiosk_ or appkiosk_

Demo

URL Find your token on - yumpu.com Token
name description

Optional parameters:

default iap kiosks
Add optional parametersRun request
1
Copied!
curl
PHP
JavaScript
Java
Example:
1
curl -X POST -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "name=accesstag7" -d "description=accesstag7" -d "default=y" -d "iap=y" -d "kiosks=webkiosk_25" "http://api.yumpu.com/2.0/account/access_tag.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'name' => 'accesstag7',
5
'description' => 'accesstag7',
6
'default' => 'y',
7
'iap' => 'y',
8
'kiosks' => 'webkiosk_25'
9
);
10
$newaccessTag = $yumpu->postAccessTag($data);
11
print_r($newaccessTag);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
name: 'accesstag7',
5
description: 'accesstag7',
6
default: 'y',
7
iap: 'y',
8
kiosks: 'webkiosk_25'
9
};
10
yumpu.postAccessTag(parameters, function(statusCode, document){
11
console.log('Status: ' + statusCode);
12
console.log(document);
13
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
String[] params = { "name=accesstag7", "description=accesstag7", "default=y", "iap=y", "kiosks=webkiosk_25"};
3
System.out.println(y.postAccessTag(params));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"access_tag": {
3
"id": "pR0VV9tCh5q4ZrEx",
4
"create_date": "2015-02-03 11:45:01",
5
"update_date": "0000-00-00 00:00:00",
6
"name": "accesstag7",
7
"description": "accesstag7",
8
"default": true,
9
"iap": true,
10
"kiosks": [
11
{
12
"id": "25",
13
"type": "webkiosk"
14
}
15
]
16
},
17
"state": "success",
18
"completed_in": "0.0761"
19
}
Copied!
Last modified 1yr ago