API
  • Yumpu documentations
  • JS
    • Introduction
    • Quick setup
    • Magazine example's
    • Bookshelf example's
    • FAQs
  • API
    • Introduction
    • Getting started
      • API token
      • Document API
      • User API
      • Search API
      • Install SDK's
    • Limits
    • Flowchart of basic processes
    • Documents
      • Get
    • Document
      • Get
      • Post file
      • Post url
      • Put
      • Delete
    • Document hotspots
      • Get
    • Document hotspot
      • Get
      • Post
      • Put
      • Delete
    • Document progress
      • Get
    • Document categories
      • Get
    • Document languages
      • Get
    • Countries
      • Get
    • Collections
      • Get
    • Collection
      • Get
      • Post
      • Put
      • Delete
    • Section
      • Get
      • Post
      • Put
      • Delete
    • Section document
      • Post
      • Delete
    • Search
      • Get
    • User
      • Get
      • Post
      • Put
    • Embeds
      • Get
    • Embed
      • Get
      • Post
      • Put
      • Delete
    • Members
      • Get
    • Member
      • Get
      • Post
      • Put
      • Delete
    • Access tags
      • Get
    • Access tag
      • Get
      • Post
      • Put
      • Delete
    • Subscriptions
      • Get
    • Subscription
      • Get
      • Post
      • Put
      • Delete
Powered by GitBook
On this page
  • Create a new member
  • Parameters:
  • Demo

Was this helpful?

  1. API
  2. Member

Post

PreviousGetNextPut

Last updated 3 years ago

Was this helpful?

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 - Token

username password

Optional parameters:

comment access_tags kiosks

Add optional parametersRun request

Example:

curl -X POST -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "username=user8" -d "password=f5bd63761dfd505514a7c94501825441" -d "comment=user8" -d "access_tags=zxeeYReHnxeg8RqZ" "https://api.yumpu.com/2.0/account/member.json"

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);

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);
});

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"
}
yumpu.com