Put

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

curl
PHP
JavaScript
Java
curl

Example:

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"
PHP

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$data = array(
'username' => 'user8',
'password' => 'f5bd63761dfd505514a7c94501825441',
'comment' => 'user8',
'access_tags' => 'zxeeYReHnxeg8RqZ'
);
$postMember = $yumpu->postMember($data);
print_r($postMember);
JavaScript

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
username: 'user7',
password: 'f5bd63761dfd505514a7c94501825441',
comment: 'user8',
access_tags: 'zxeeYReHnxeg8RqZ'
};
yumpu.postMember(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Java

Example:

Yumpu y = new Yumpu("your access token");
String username = "user7";
String password = "mypassword";
String[] params = {"comment=user8"};
System.out.println(y.postMember(username, password, params));

Whatever language you are using, the result will be the same.

{
"member": {
"id": "GuTIyoCZmWlnHjXP",
"create_date": "2015-02-03 09:28:07",
"update_date": "0000-00-00 00:00:00",
"username": "user7",
"password": "f5bd63761dfd505514a7c94501825441",
"comment": "user8",
"access_tags": [
{
"id": "zxeeYReHnxeg8RqZ",
"name": "accesstag1",
"default": true
}
],
"kiosks": [
]
},
"state": "success",
"completed_in": "0.1563"
}