My Account
Get the information of my account
My Account
GET
https://abc.hoola.vn/manage/api/users/get-me
Query Parameters
Name
Type
Description
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"
}
// Reponse Code "02". No token.
// Return data:
{
"respCode": "02",
"user": null,
"msg": "No token"
}
// Response Code "04". Token is invalid or has expired.
// Return data:
{
"respCode": "04",
"user": null,
"msg": "Invalid token || Token has expired"
}
// Response Code "01". Wrong request method.
// Return data:
{
"respCode": "01",
"user": null,
"msg": "Request method should be GET"
}
// Response Code "03". Server not able to authenticate your account.
// Return data:
{
"respCode": "03",
"user": null,
"msg": "Server not able to authenticate your account"
}
Example:
// GET:
https://abc.hoola.vn/manage/api/users/get-me?token=6KxGr8LJzlixGIUskGv3VodeFI9u8fWtPs3no3Q3S3h
Last updated