A
A
API
Search…
Get

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 parametersRun request
1
Copied!
curl
PHP
JavaScript
Java
Example:
1
curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://api.yumpu.com/2.0/user.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'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'
5
);
6
$getUser = $yumpu->getUser($data);
7
print_r($getUser);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
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'
5
};
6
yumpu.getUser(parameters, function(statusCode, document){
7
console.log('Status: ' + statusCode);
8
console.log(document);
9
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
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"};
3
System.out.println(y.getUser(params));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"user": {
3
"id": "102864144",
4
"create_date": "2013-03-08 17:13:43",
5
"activate_date": "2013-04-25 14:20:04",
6
"username": "Api.User",
7
"email": "[email protected]",
8
"gender": "male",
9
"name": "Api User",
10
"firstname": "Api",
11
"lastname": "User",
12
"birth_date": "1986-01-01",
13
"address": "Moosackerstr. 17",
14
"zip_code": "9444",
15
"city": "Diepoldsau",
16
"country": "CH",
17
"description": "I am the API user.",
18
"website": "http://www.yumpu.com",
19
"blog": "http://blog.yumpu.com",
20
"language": "de"
21
},
22
"state": "success"
23
}
Copied!
Last modified 1yr ago