Hoola.vn
English
English
  • Introduction
  • Register and Set up your Website
  • Design your Online E-learning Website
  • GUIDE FOR STUDENTS: Create a student account
  • GUIDE FOR STUDENTS: Buy/Receive courses
  • Manage Content
    • Courses
      • Create your own courses 101
      • Live Lessons
      • How to display courses on your website
    • Tags
    • Topics
    • Teachers
    • Library
    • Activation Codes
    • Subpages
  • Manage Accounts
    • Accounts
    • Roles and Decentralization
  • Manage Orders
    • All Orders
    • Manage Calls
    • Distribute Calls
  • Marketing
    • Discount
    • Email for Marketing
    • Popup
  • Affiliate
    • Set up Affiliate in your courses
    • Manage Affiliate
  • Statistics
    • General Statistics
    • Students
    • Orders
    • Courses
    • Active Users
    • Revenue
  • Certificate
    • Certificate Templates
    • Issued Certificates
  • Customer Support
    • Activation Code
    • Bank Transfer Code
    • Discussion
    • Testimonial
    • Notification
  • Website Preview
  • Manage Blog
  • Display Setting
    • Menu
      • Logo
    • Homepage
      • Hero Banner
      • Partners - Customers
      • Testimonials
    • List of Courses Page
    • Classroom
    • Footer
    • Advertisement
  • System Setting
    • Setup
      • Change colors of your website
    • Authentication
      • Registration
      • Number of devices allowed per account
      • Login via Social Media
        • Set up a project in Google Cloud Platform
        • Set up an app in Facebook for Developers
      • Share accounts
      • Policies and Terms of Service
    • Payment Methods
    • Email
      • Set up Automatic System Email
      • Create and Use App Password
    • Plugin
    • Domain
  • Website's Resources
    • General Information
    • Status
    • In-use Service Packages
  • API
    • Login
    • My Account
    • Get an account's information
    • Get multiple accounts' information
    • Search accounts
    • Count Accounts
    • Create an account
    • Create multiple accounts
    • Get a course's information
    • Get multiple courses' information
    • Search course
    • Count courses
    • Add a course to a user
    • Add multiple courses to multiple users
    • Remove a course from a user
Powered by GitBook
On this page

Was this helpful?

  1. API

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

PreviousLoginNextGet an account's information

Last updated 3 years ago

Was this helpful?