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

Count courses

Count courses

GET https://abc.hoola.vn/manage/api/courses/count-total-course

Query Parameters

Name
Type
Description

token

string

Account Authentication Token

// Response Code "00". Query successfully.
// Return data:
{
    "respCode": "00",
    "totalCourse": 7,
    "msg": "Success"
}
// Response Code "02". No token provided.
// Return data:
{
    "respCode": "02",
    "totalCourse": null,
    "msg": "No token"
}
// Response Code "04". Token is invalid or has expired.
// Return data:
{
    "respCode": "04",
    "totalCourse": null,
    "msg": "Invalid token || Token has expired"
}
// Response Code "05". Your account is not authorized to perform the query.
// Return data:
{
    "respCode": "05",
    "totalCourse": null,
    "msg": "Your account does not have permission"
}
// Response Code "01". Wrong request method. 
// Return data:
{
    "respCode": "01",
    "totalCourse": null,
    "msg": "Request method should be GET"
}
// Response Code "03". Server not able to authenticate your account.
// Return data:
{
    "respCode": "03",
    "totalCourse": null,
    "msg": "Server not able to authenticate your account"
}

Example:

// GET:
https://abc.hoola.vn/manage/api/courses/count-total-course?token=sdhg23797sdbv9186jdvk58

PreviousSearch courseNextAdd a course to a user

Last updated 3 years ago

Was this helpful?