Get multiple accounts' information

Get multiple accounts' information

GET https://abc.hoola.vn/manage/api/users/get-multi-user

Maximum 100 accounts for every query.

Query Parameters

NameTypeDescription

token

string

Account Authentication Token

start

integer

Ignore the number of accounts in query results (minimum 0)

limit

integer

Limit the accounts to get information (minimum 1 and maximum 100)

// Response Code "00". Query successfully. 
// Return data:
{
    "respCode": "00",
    "users": [
        {
            "_id": "73chhLtPnxpPoekrx",
            "createdAt": "2021-05-27T08:38:15.067Z",
            "username": "vuvanhoang",
            "emails": [
                {
                    "address": "hoangvuvan@abc.com",
                    "verified": false
                }
            ],
            "profile": {
                "name": "Vu Van Hoang"
            },
            "myCourses": [
                {
                    "courseId": "wSZpqbtWowmpLC68L",
                    "activatedDate": "2021-05-29T06:19:24.107Z",
                    "expiredAt": "2121-05-05T06:19:24.107Z"
                }
            ],
            "myCart": [
                {
                    "courseId": "vivPteJNNC2P94Es8",
                    "status": "DELETED"
                }
            ],
            "myTransactions": [
                "nTv5XgDMNcMLBuRM5"
            ]
        },
        {
            "_id": "sWMDTaKwgdAqnLtYd",
            "createdAt": "2021-05-27T08:35:38.162Z",
            "username": "userAPI48",
            "emails": [
                {
                    "address": "userapi48@api.com",
                    "verified": true
                }
            ],
            "profile": {
                "name": "Tai khoan API 48",
                "affUserType": "L1",
                "tUid": ""
            },
            "myCourses": [],
            "myCart": [
                {
                    "courseId": "vivPteJNNC2P94Es8",
                    "status": "DELETED"
                }
            ]
        },
        {
            "_id": "jSYigdZhMMLY9yava",
            "createdAt": "2021-05-27T07:15:01.150Z",
            "username": "userAPI44",
            "emails": [
                {
                    "address": "userapi44@api.com",
                    "verified": false
                }
            ],
            "profile": {
                "name": "Tai khoan API 44"
            },
            "myCart": [
                {
                    "courseId": "wSZpqbtWowmpLC68L",
                    "status": "DELETED"
                }
            ]
        }
    ],
    "msg": "Success"
}

GET https://abc.hoola.vn/manage/api/user/get-single-user/:id

Path Parameters

NameTypeDescription

string

Your account is not authorized to execute this query

Example:

// GET: 
https://abc.hoola.vn/manage/api/users/get-multi-user?token=kshfk295xkjvbk0929375knxcbvk9895792&start=0&limit=50

Last updated