WPDM Api

You can use this add-on to handle remote data access request in your Download Manager Installation. Premium Package – WordPress Digital Store Solution is required with WPDM for this add-on.

API URL:

http://wp-site-url/?wpdm_api=API_KEY&task=API_Call_Fn&parameters....

Valid API Calls:

  • apiversion  — returns api version
  • siteInfo — returns  title ( sitename ), total number of packages, total sales, total downloads
  • getCategoryList — returns category list
  • getPackageList — returns package list
    Params:

    • cat_id: specify the category id if  you want to get packages of  a category
    • s: any strong, if you want to search package
  • getPackage — returns package details
    Params:

    • pid: specify the package id ( required )
  • getTodaySales — returns today's sales when premium package add-on is active
  • getSales — returns sales of a package when premium package add-on is active
    Params:

    • from_date: start date , format: yyyy-mm-dd  ( optional )
    • to_date: end date, format: yyyy-mm-dd ( optional )
    • pid: package id ( optional ), use if you want to get sales history of any specific package
  • getOrderDetails — return details of given order id when premium package add-on is active
    Params:

    • oid: order id ( required )
  • getOrders — returns list of orders
    Params:

    • from_date: start date , format: yyyy-mm-dd  ( optional )
    • to_date: end date, format: yyyy-mm-dd ( optional )
    • count: numbers of records per page
    • cp: current page
  • downloadHistory — returns download history
    Params:

    • uid: takes user ID ( optional ), use if you want to get the download history of any specific user
    • pid: takes package ID ( optional ), use if you want to get the download history of any specific package
    • day: takes date ( 1 - 31 ) ( optional )
    • month: takes month ( 1 - 12 ) ( optional )
    • year: takes year ( ex: 2016 ) ( optional )
    • cp: current page

Discussion

Leave a Reply