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

Get a course's information

Get a course's information

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

Path Parameters

Name
Type
Description

id

string

Course ID

Query Parameters

Name
Type
Description

token

string

Account Authentication Token

Mã phản hồi respCode "00". Truy vấn thông tin khoá học thành công. Data trả về
{
    "respCode": "00",
    "course": {
        "_id": "vivPteJNNC2P94Es8",
        "refId": "1esv2a12q",
        "title": "15 Thủ Pháp Thị Giác Trong Nhiếp Ảnh",
        "slug": "alo-alo",
        "approval": true,
        "inCombo": [],
        "purpose": [
            {
                "content": "alo"
            },
            {
                "content": "alo"
            }
        ],
        "target_audience": [
            {
                "content": "alo"
            }
        ],
        "tag": [],
        "trailer": {
            "source": "https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8",
            "sourceType": "UPLOAD",
            "sourceName": "Kidzilla vs. The new Vimeo iOS app.mp4"
        },
        "price": {
            "original": 699000,
            "discount_enable": true,
            "use_private_discount": true,
            "private_discount_price": 500000,
            "private_discount_time": {
                "start": "2021-01-11T16:00:00.000Z",
                "end": "2021-01-20T16:00:00.000Z"
            }
        },
        "affiliates": {
            "enable": true,
            "use_private": true,
            "use_basic_discount_percent": false,
            "basic_discount_percent": 0,
            "use_basic_payout_percent": false,
            "basic_payout_value": {
                "L1": 59000
            },
            "basic_payout_percent": {},
            "basic_discount_price": 599000
        },
        "chapters": [
            "WRu3x5X9j5WTWQbJd",
            "QroFQ3gvGdGfT6Spc",
            "PMYY56sXY6yWyAkGG",
            "pDFuMsi7R64nyQnyL",
            "PFAB8yFxtSRguSsjX",
            "FMkQPSt44vsaL54Pr",
            "CTytHWHc5DjbqyJti",
            "GBiBP9ZoWeeSp7Y7h",
            "PCMgRsrCPK2uuc7Mi"
        ],
        "createdAt": "2021-01-07T05:53:24.981Z",
        "updatedAt": "2021-04-20T08:32:34.855Z",
        "image_detail": {
            "original": {
                "path": "assets/app/uploads/uploadFiles/iiTmsiYHAEQQ8zzy7.png",
                "size": 94130,
                "type": "image/png",
                "extension": "png",
                "meta": {
                    "pipePath": "lib/image/course-demo-07_JAmqKNr6p9N3JFWxj-original.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/course-demo-07_JAmqKNr6p9N3JFWxj-original.png"
            },
            "thumbnail160": {
                "meta": {
                    "pipePath": "lib/image/course-demo-07_Q6FxeKrS2tErew9BZ-thumbnail160.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/course-demo-07_Q6FxeKrS2tErew9BZ-thumbnail160.png"
            },
            "preview": {
                "meta": {
                    "pipePath": "lib/image/course-demo-07_9df7SsnEnMyhSRkRC-preview.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/course-demo-07_9df7SsnEnMyhSRkRC-preview.png"
            }
        },
        "image_primary": {
            "original": {
                "path": "assets/app/uploads/uploadFiles/KM79rtPQgZYAamwJk.png",
                "size": 60316,
                "type": "image/png",
                "extension": "png",
                "meta": {
                    "pipePath": "lib/image/detail-07_Hh8QWwfytynQsdG3x-original.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/detail-07_Hh8QWwfytynQsdG3x-original.png"
            },
            "thumbnail160": {
                "meta": {
                    "pipePath": "lib/image/detail-07_3DxbfNDATjFPNdWsM-thumbnail160.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/detail-07_3DxbfNDATjFPNdWsM-thumbnail160.png"
            },
            "preview": {
                "meta": {
                    "pipePath": "lib/image/detail-07_SapHkRYXChoYqBQtn-preview.png"
                },
                "url": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/image/detail-07_SapHkRYXChoYqBQtn-preview.png"
            }
        },
        "description": "<p>alo</p>",
        "headline": "alo",
        "requirement": "<p>alo</p>",
        "credit_shared": {
            "enable": false,
            "use_private_value": false,
            "value": 0
        },
        "type": "SALE",
        "instructor": [
            "NGziCcBWgZeBBynBP"
        ],
        "topic": "fpY6Pvxep2f3Ks3sa",
        "category": [
            "46sWMNRYY7kTBYBFP",
            "TEuAKxTTRJsPyCxgH",
            "Kk9onGZ5rEGYWsZr8"
        ],
        "label": "Master",
        "docs": [
            {
                "title": "Tài liệu mới",
                "type": "VIDEO",
                "sourceType": "UPLOAD"
            },
            {
                "title": "Tài liệu mới",
                "type": "PDF",
                "source": "https://wehoo-client-demo.sfo2.cdn.digitaloceanspaces.com/lib/pdf/uml-and-object-oriented-design_CGixhS9vCMrqPcHc9-original.pdf",
                "sourceType": "UPLOAD",
                "sourceName": "UML and Object-Oriented Design.pdf"
            }
        ]
    },
    "msg": "Success"
}
Mã phản hồi respCode "02". Không có tham số id. Data trả về 
{
    "respCode": "02",
    "course": null,
    "msg": "No id"
}


Mã phản hồi respCode "03". Không có tham số token tài khoản của bạn. Data trả về 
{
    "respCode": "03",
    "course": null,
    "msg": "No token"
}


Mã phản hồi respCode "07". Không tìm thấy khoá học cần truy vấn. Data trả về 
{
    "respCode": "07",
    "course": null,
    "msg": "Course not fount"
}
Mã phản hồi respCode "05". Token xác thực tài khoản của bạn không có hiệu lực hoặc đã hết hạn. Data trả về
{
    "respCode": "05",
    "": null,
    "msg": "Invalid token || Token has expired"
}
Mã phản hồi respCode "06". Tài khoản của bạn không được phân quyền cho truy vẫn này. Data trả về 
{
    "respCode": "06",
    "course": null,
    "msg": "Your account does not have permission"
}
Mã phản hồi respCode "01". Phương thức không hợp. Data trả về 
{
    "respCode": "01",
    "course": null,
    "msg": "Request method should be GET"
}
Mã phản hồi respCode "04". Lỗi server, không xác thực được tài khoản của bạn. Data trả về 
{
    "respCode": "04",
    "course": null,
    "msg": "Server not able to authenticate your account"
}

Example

GET: 
https://abc.hoola.vn/manage/api/courses/get-single-course/124khsdkgh7574?token=kshfk295xkjvbk0929375knxcbvk9895792

PreviousCreate multiple accountsNextGet multiple courses' information

Last updated 3 years ago

Was this helpful?