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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a129f88397aca9cd4fd83664c1e18eeafc9574ae76506457757b93c871a8d67
4
- data.tar.gz: 2dcdb57aa40c048a1fefd57265092504fc187140b33e8776a68b7335b9a910c6
3
+ metadata.gz: cfb7b3257ec2961de0fbcd967406e12bbd74b3463edf7508fdc8165819320249
4
+ data.tar.gz: dcb70604ad045a2d92d7c6eee309b19bbebf8db0502dbdecb0e1a4eceffa1141
5
5
  SHA512:
6
- metadata.gz: bf8bbd4363afaafb1925013eccdb2bbb2ad6acab090e2c984c06e153515a5ddf946162772e665d89eee2a2b65a0a103765da0ce00a7157e0c62aa82485463376
7
- data.tar.gz: 0e1ac21112de3099f8ab32d559ed255c8bcd8934d231a1a32402e2750b5d919ee12020a180d9611d1135fa4dcd851d6f23c74ce724cd3635aa9c82ed1a74fde8
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MangoApps
4
- VERSION = "19.1.2"
4
+ VERSION = "19.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangoapps-ex-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.1.2
4
+ version: 19.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MangoApps Inc.