mangoapps-ex-sdk-ruby 19.1.2 → 19.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mangoapps/modules/attachments/get_folder_files.rb +2 -2
- data/lib/mangoapps/modules/attachments/get_folders.rb +2 -2
- data/lib/mangoapps/modules/learn/course_categories.rb +2 -2
- data/lib/mangoapps/modules/libraries/get_libraries.rb +2 -2
- data/lib/mangoapps/modules/libraries/get_library_categories.rb +2 -2
- data/lib/mangoapps/modules/libraries/get_library_items.rb +2 -2
- data/lib/mangoapps/modules/notifications/notifications.rb +2 -2
- data/lib/mangoapps/modules/posts/get_all_posts.rb +2 -2
- data/lib/mangoapps/modules/recognitions/award_categories.rb +2 -2
- data/lib/mangoapps/modules/recognitions/get_awards_list.rb +2 -2
- data/lib/mangoapps/modules/tasks/get_tasks.rb +2 -2
- data/lib/mangoapps/modules/trackers/get_trackers.rb +2 -2
- data/lib/mangoapps/modules/users.rb +9 -0
- data/lib/mangoapps/modules/wikis/get_wikis.rb +2 -2
- data/lib/mangoapps/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb7b3257ec2961de0fbcd967406e12bbd74b3463edf7508fdc8165819320249
|
4
|
+
data.tar.gz: dcb70604ad045a2d92d7c6eee309b19bbebf8db0502dbdecb0e1a4eceffa1141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bab7dc5d97620bd8e7900ad3e362aeed8f62bfb1e753e11382d2f5e065811bfe1d8e0fb6b0dfec6c6d91ca78a75c32078e45f7f27ffc0d7308566b28d82e333
|
7
|
+
data.tar.gz: 3c43ee020dcc6b801807e2f8b4a8b093c7e38688b00f3eb3a5330a47b965e9f6f7672bc992002d51d408af7fdb0c01c39a47c75400dc6ed3f9089563421bd6a9
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Attachments
|
6
6
|
module GetFolderFiles
|
7
|
-
def get_folder_files(folder_id, include_folders: "Y", params: {})
|
8
|
-
get("folders/#{folder_id}/files.json?include_folders=#{include_folders}", params: params)
|
7
|
+
def get_folder_files(folder_id, include_folders: "Y", params: {}, unique_user_id: nil)
|
8
|
+
get("folders/#{folder_id}/files.json?include_folders=#{include_folders}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Attachments
|
6
6
|
module GetFolders
|
7
|
-
def get_folders(params: {})
|
8
|
-
get("folders.json", params: params)
|
7
|
+
def get_folders(params: {}, unique_user_id: nil)
|
8
|
+
get("folders.json", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -6,8 +6,8 @@ module MangoApps
|
|
6
6
|
module CourseCategories
|
7
7
|
# Get course categories from MangoApps Learn API
|
8
8
|
# GET /api/v2/learn/course_categories.json
|
9
|
-
def get_course_categories(params: {})
|
10
|
-
get("v2/learn/course_categories.json", params: params)
|
9
|
+
def get_course_categories(params: {}, unique_user_id: nil)
|
10
|
+
get("v2/learn/course_categories.json", params: params, unique_user_id: unique_user_id)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Libraries
|
6
6
|
module GetLibraries
|
7
|
-
def get_libraries(offset: 0, limit: 20, params: {})
|
8
|
-
get("users/libraries/get_libraries.json?offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_libraries(offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("users/libraries/get_libraries.json?offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Libraries
|
6
6
|
module GetLibraryCategories
|
7
|
-
def get_library_categories(library_id, offset: 0, limit: 20, params: {})
|
8
|
-
get("users/libraries/#{library_id}.json?offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_library_categories(library_id, offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("users/libraries/#{library_id}.json?offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Libraries
|
6
6
|
module GetLibraryItems
|
7
|
-
def get_library_items(library_id, category_id, offset: 0, limit: 20, params: {})
|
8
|
-
get("users/libraries/#{library_id}/categories/#{category_id}/library_items/get_library_items.json?offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_library_items(library_id, category_id, offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("users/libraries/#{library_id}/categories/#{category_id}/library_items/get_library_items.json?offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Notifications
|
6
6
|
module Notifications
|
7
|
-
def get_notifications(offset: 0, limit: 20, params: {})
|
8
|
-
get("users/notifications.json?offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_notifications(offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("users/notifications.json?offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Posts
|
6
6
|
module GetAllPosts
|
7
|
-
def get_all_posts(filter_by: "all", offset: 0, limit: 20, params: {})
|
8
|
-
get("posts/get_all_posts.json?filter_by=#{filter_by}&offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_all_posts(filter_by: "all", offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("posts/get_all_posts.json?filter_by=#{filter_by}&offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Recognitions
|
6
6
|
module AwardCategories
|
7
|
-
def get_award_categories(params: {})
|
8
|
-
get("v2/recognitions/get_award_categories.json", params: params)
|
7
|
+
def get_award_categories(params: {}, unique_user_id: nil)
|
8
|
+
get("v2/recognitions/get_award_categories.json", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Recognitions
|
6
6
|
module GetAwardsList
|
7
|
-
def get_awards_list(category_id, params: {})
|
8
|
-
get("v2/recognitions/get_awards_list.json?category_id=#{category_id}", params: params)
|
7
|
+
def get_awards_list(category_id, params: {}, unique_user_id: nil)
|
8
|
+
get("v2/recognitions/get_awards_list.json?category_id=#{category_id}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Tasks
|
6
6
|
module GetTasks
|
7
|
-
def get_tasks(filter: "Pending_Tasks", page: 1, limit: 5, params: {})
|
8
|
-
get("tasks/new_index.json?filter=#{filter}&page=#{page}&limit=#{limit}", params: params)
|
7
|
+
def get_tasks(filter: "Pending_Tasks", page: 1, limit: 5, params: {}, unique_user_id: nil)
|
8
|
+
get("tasks/new_index.json?filter=#{filter}&page=#{page}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Trackers
|
6
6
|
module GetTrackers
|
7
|
-
def get_trackers(page: 1, limit: 20, params: {})
|
8
|
-
get("v2/trackers.json?page=#{page}&limit=#{limit}", params: params)
|
7
|
+
def get_trackers(page: 1, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("v2/trackers.json?page=#{page}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -6,6 +6,15 @@ module MangoApps
|
|
6
6
|
def me(params = {}, unique_user_id: nil)
|
7
7
|
get("v2/me.json", params: params, unique_user_id: unique_user_id)
|
8
8
|
end
|
9
|
+
|
10
|
+
def get_users(params = {}, offset: 0, limit: 20, unique_user_id: nil)
|
11
|
+
params = params.merge(offset: offset, limit: limit)
|
12
|
+
get("v2/users.json", params: params, unique_user_id: unique_user_id)
|
13
|
+
end
|
14
|
+
|
15
|
+
def get_user(user_id, params = {}, unique_user_id: nil)
|
16
|
+
get("v2/users/#{user_id}.json", params: params, unique_user_id: unique_user_id)
|
17
|
+
end
|
9
18
|
end
|
10
19
|
end
|
11
20
|
end
|
@@ -4,8 +4,8 @@ module MangoApps
|
|
4
4
|
class Client
|
5
5
|
module Wikis
|
6
6
|
module GetWikis
|
7
|
-
def get_wikis(mode: "my", offset: 0, limit: 20, params: {})
|
8
|
-
get("v2/wikis.json?mode=#{mode}&offset=#{offset}&limit=#{limit}", params: params)
|
7
|
+
def get_wikis(mode: "my", offset: 0, limit: 20, params: {}, unique_user_id: nil)
|
8
|
+
get("v2/wikis.json?mode=#{mode}&offset=#{offset}&limit=#{limit}", params: params, unique_user_id: unique_user_id)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/mangoapps/version.rb
CHANGED