Jump to content
IPS Community Suite 简体中文
Sign in to follow this  
ipscn

LearnDash Events

Recommended Posts

LearnDash Events 是一个 LearnDash 日程管理插件。

特性

支持添加/编辑日程事件;

支持批量添加日程事件(前置条件:一个课程的各个课时的时间长度一致);

后台有日程列表视图,该视图支持按照班级,课程,课时,日程的开始时间所在的月份进行过滤;

支持API 的操作: 索引/搜索日程,支持获取单个日程,支持创建单个日程,支持更新单个日程,支持删除特定的某个日程;

预留了接口,支持扩展;

后台视图

添加日程

LearnDash Events Add Item

日程列表

screenshot-2.png

编辑日程

screenshot-3.png

 

批量添加日程

screenshot-4.png

 

API 

创建单个日程

/wp-json/cwpapi/event/create

示例

curl -X POST  -d "group_id=47&course_id=42&lesson_id=108&start_at=2018-02-10%2008%3A20%3A00&end_at=2018-02-10%2010%3A20%3A00&address=%E4%B8%8A%E6%B5%B7%E5%B8%82%E5%BE%90%E6%B1%87%E5%8C%BA%E8%A1%A1%E5%B1%B1%E8%B7%AF78-2-503"  http://ecom2.com/wp-json/cwpapi/event/create

 

获取单个日程

/wp-json/cwpapi/event/getSingle

示例

curl -X POST  -d "id=42"  http://ecom2.com/wp-json/cwpapi/event/getSingle

 

搜索/索引

/wp-json/cwpapi/event/search

搜索参数支持group_id,course_id,lesson_id, start_date, to_date,per_page,page, withTitle 等参数。参数全部为可选,两个使用示例

curl -X POST  -d "group_id=47&course_id=42"  http://ecom2.com/wp-json/cwpapi/event/search
curl -X POST   -d "per_page=2&page=2"   http://ecom2.com/wp-json/cwpapi/event/search

更新单个日程

/wp-json/cwpapi/event/update

id为必需参数,其它参数均为可选,使用示例

curl -X POST   -d "id=60&address=abcde&comment=changeAddress!"   http://ecom2.com/wp-json/cwpapi/event/update

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×