b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Advanced Topics
  3. Using the APIs
  4. REST API or RESTful API
  5. Retrieve a User (REST)

Retrieve a User (REST)

GET <baseurl>/api/v1/users/<id>

This is the API equivalent of disp = user.

Response

User properties in the Response

Name

Type

Description

id

integer

User ID

picture

string

URL of main user profile picture

pictures

array

Array of URLs of other user profile pictures

login

string

Login

firstname

string

First name

lastname

string

Last name

gender

string/null

'M' - Male, 'F' - Female, 'O' - Other, null - no gender

location

array

Key

Value

country

null OR array:

Key

Type

Value

id

integer

Country ID

name

string

Country name

region

null OR array:

Key

Type

Value

id

integer

Region ID

name

string

Region name

subregion

null OR array:

Key

Type

Value

id

integer

Sub-region ID

name

string

Sub-region name

city

null OR array:

Key

Type

Value

id

integer

City ID

name

string

City name

organizations

array

Array of user organizations, each array item is array:

Key

Type

Value

name

string

Organization name

url

string

Organization URL

userfields

array

Array of userfields, each array item is a grouped array with key as userfield group name:

Key

Type

Value

code

string

Userfield code

name

string

Userfield name

value

string

Userfield value

Errors

Possible Error Codes

Error code

HTTP response

Message

no_access

403

You must log in to view this user profile.

no_access

403

You must activate your account before you can view this user profile.

no_access

403

Your account status currently does not permit to view this user profile.

no_access

403

The requested user does not exist!

no_access

403

The requested user account is closed!

no_access

403

Please specify your country before attempting to contact other users.

no_access

403

You don’t have permission to view this user profile.

user_invalid_id

404

Invalid user ID

Created by yurabakhtin • Last edit by yurabakhtin on 2018-10-12 10:47 • •

No feedback yet

On this page

  • Response
  • Errors

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
    • Using Desktop Blogging Tools
    • Using Blogging Apps
    • Blogging by email
    • Using the APIs
      • REST API or RESTful API
        • List Collections (REST)
        • List Posts (REST)
        • List Items (REST)
        • Retrieve a Post (REST)
        • Retrieve any item (REST)
        • Search (REST)
        • List Users (REST)
        • Retrieve a User (REST)
        • Create a User (REST)
        • Update a User (REST)
        • Delete a User (REST)
        • Cookie Authentication (REST)
        • Basic HTTP Authentication (REST)
      • B2 API
      • API Error Codes
      • Blogger API
      • MetaWeblog API
      • MovableType API
    • Contributing
    • Translations (i18n/l10n)
    • Monetizing
    • How to...
    • Podcasting
  • Glossary
  • Archives
CMS with Bootstrap

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque