Retrieve your user

Parameters:

Name Optional / Required Data type Description Default
return_fields optional String Customize the responses by setting the return fields (id, create_date, activate_date, last_login_date, username, email, gender, name, firstname, lastname, birth_date, address, zip_code, city, country, description, website, blog, language) id, create_date, activate_date, last_login_date, username, email, gender, name, firstname, lastname, birth_date, address, zip_code, city, country, description, website, blog, languge

Demo

URL
Find your token on - yumpu.com
Token

Optional parameters:

return_fields
Add optional parameters
Run request

Example:

curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://api.yumpu.com/2.0/user.json"

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$data = array(
    'return_fields' => 'id,create_date,activate_date,last_login_date,username,email,gender,name,firstname,lastname,birth_date,address,zip_code,city,country,description,website,blog,languge'
);
$getUser = $yumpu->getUser($data);
print_r($getUser);

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
   return_fields: 'id,create_date,activate_date,last_login_date,username,email,gender,name,firstname,lastname,birth_date,address,zip_code,city,country,description,website,blog,languge'
};
yumpu.getUser(parameters, function(statusCode, document){
   console.log('Status: ' + statusCode);
   console.log(document);
});

Example:

Yumpu y = new Yumpu("your access token");
String[] params = {"return_fields=id,create_date,activate_date,last_login_date,username,email,gender,name,firstname,lastname,birth_date,address,zip_code,city,country,description,website,blog,languge"};
System.out.println(y.getUser(params));

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

{
  "user": {
    "id": "102864144",
    "create_date": "2013-03-08 17:13:43",
    "activate_date": "2013-04-25 14:20:04",
    "username": "Api.User",
    "email": "yumpu.api@gmail.com",
    "gender": "male",
    "name": "Api User",
    "firstname": "Api",
    "lastname": "User",
    "birth_date": "1986-01-01",
    "address": "Moosackerstr. 17",
    "zip_code": "9444",
    "city": "Diepoldsau",
    "country": "CH",
    "description": "I am the API user.",
    "website": "http://www.yumpu.com",
    "blog": "http://blog.yumpu.com",
    "language": "de"
  },
  "state": "success"
}

results matching ""

    No results matching ""