A
A
API
Search…
Post

Create a new member

Parameters:

Name
Optional / Required
Data type
Description
Default
username
required
String
min. 2 characters, max. 50 characters, allowed characters a-z, 0-9, dot (.), @, hyphen (-) and underscore (_)
password
required
String
The value must be transmitted as md5
comment
optional
String
min. 4 characters, max. 50 characters
access_tags
optional
String
One or multiple access_tag ids (myid1 or myid1,myid2)
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
username password

Optional parameters:

comment access_tags kiosks
Add optional parametersRun request
1
Copied!
curl
PHP
JavaScript
Java
Example:
1
curl -X POST -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "username=user8" -d "password=f5bd63761dfd505514a7c94501825441" -d "comment=user8" -d "access_tags=zxeeYReHnxeg8RqZ" "http://api.yumpu.com/2.0/account/member.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'username' => 'user8',
5
'password' => 'f5bd63761dfd505514a7c94501825441',
6
'comment' => 'user8',
7
'access_tags' => 'zxeeYReHnxeg8RqZ'
8
);
9
$postMember = $yumpu->postMember($data);
10
print_r($postMember);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
username: 'user7',
5
password: 'f5bd63761dfd505514a7c94501825441',
6
comment: 'user8',
7
access_tags: 'zxeeYReHnxeg8RqZ'
8
};
9
yumpu.postMember(parameters, function(statusCode, document){
10
console.log('Status: ' + statusCode);
11
console.log(document);
12
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
String username = "user7";
3
String password = "mypassword";
4
String[] params = {"comment=user8"};
5
System.out.println(y.postMember(username, password, params));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"member": {
3
"id": "GuTIyoCZmWlnHjXP",
4
"create_date": "2015-02-03 09:28:07",
5
"update_date": "0000-00-00 00:00:00",
6
"username": "user7",
7
"password": "f5bd63761dfd505514a7c94501825441",
8
"comment": "user8",
9
"access_tags": [
10
{
11
"id": "zxeeYReHnxeg8RqZ",
12
"name": "accesstag1",
13
"default": true
14
}
15
],
16
"kiosks": [
17
18
]
19
},
20
"state": "success",
21
"completed_in": "0.1563"
22
}
Copied!
Last modified 1yr ago