My Account

Get the information of my account

My Account

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

Query Parameters

NameTypeDescription

token

string

Account Authentication Token

// Response Code "00". 
// Return data:
{
    "respCode": "00",
    "user": {
        "_id": "XTNx4LhwfGcnkiaDX",
        "createdAt": "2020-11-26T02:21:46.282Z",
        "username": "abc",
        "emails": [
            {
                "address": "abcxyz@gmail.com",
                "verified": false
            }
        ],
        "profile": {
            "name": "ABC",
            "phone": "1234567890",
            "avatar": {
                "imageId": "DxDFjz6PZaT7uXqBe",
                "imageLink": "https://abc.jpeg"
            }
        },
        "forSeller": {
            "callDistrCoeff": 1,
            "getCall": true
        },
        "myCourses": [
            {
                "courseId": "vivPteJNNC2P94Es8",
                "activatedDate": "2021-05-11T03:58:31.730Z",
                "expiredAt": "2121-04-17T03:58:31.730Z",
                "currentLesson": {
                    "chapterId": "PCMgRsrCPK2uuc7Mi",
                    "lessonId": "HAspobkZQGxic8YvJ",
                    "lessonSlug": "live-nen-tang-bigblue",
                    "currentTime": 0
                },
                "lessonStatus": [
                    {
                        "lessonId": "mAdDXGoZqWr566koH",
                        "finish": true
                    },
                    {
                        "lessonId": "cjDJQdvrkBxgimThj",
                        "finish": true
                    },
                    {
                        "lessonId": "b2nDjCD5xiMtwFJhx",
                        "finish": true
                    }
                ]
            },
            {
                "courseId": "2LnbF77cmzF5J8bHE",
                "activatedDate": "2021-05-11T03:46:17.165Z",
                "expiredAt": "2121-04-17T03:46:17.165Z"
            },
            {
                "courseId": "fsmRdcgzWJR9BiWrk",
                "activatedDate": "2021-05-04T05:19:28.199Z",
                "expiredAt": "2121-04-10T05:19:28.257Z",
                "currentLesson": {
                    "chapterId": "nACJMBjWi7YmrTGro",
                    "lessonId": "2682BbT2ub2hkT8ej",
                    "lessonSlug": "ten-bai-moi-blo-blo-blo-blo",
                    "currentTime": 0
                },
                "lessonStatus": [
                    {
                        "lessonId": "zkP9gQGkJ5pnqEQfj",
                        "finish": true
                    },
                    {
                        "lessonId": "2682BbT2ub2hkT8ej",
                        "finish": true
                    }
                ],
                "finish": true
            },
            {
                "courseId": "wSZpqbtWowmpLC68L",
                "activatedDate": "2021-05-12T07:44:56.211Z",
                "expiredAt": "2121-04-18T07:44:56.211Z",
                "currentLesson": {
                    "chapterId": "KsYntZbhTADs9kAb3",
                    "lessonId": "KauZZYMfpn8pGFrF7",
                    "lessonSlug": "hop-bo-chinh-tri",
                    "currentTime": 0
                },
                "lessonStatus": [
                    {
                        "lessonId": "SBuwakdcN9m6hzDE3",
                        "finish": true
                    },
                    {
                        "lessonId": "KauZZYMfpn8pGFrF7",
                        "finish": true
                    }
                ]
            }
        ],
        "myCart": [
            {
                "courseId": "2LnbF77cmzF5J8bHE",
                "status": "DELETED"
            },
            {
                "courseId": "vivPteJNNC2P94Es8",
                "status": "DELETED"
            }
        ],
        "balance": {},
        "myTransactions": [
            "ynfMGBei5cWhr3eMk",
            "KhPCKEc8CfqWAqNCy"
        ]
    },
    "msg": "Success"
}

Example:

// GET:
https://abc.hoola.vn/manage/api/users/get-me?token=6KxGr8LJzlixGIUskGv3VodeFI9u8fWtPs3no3Q3S3h

Last updated