Skip to content

Commit

Permalink
feat(groups): add filter param option
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed May 28, 2024
1 parent db32089 commit 72bbe61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: office365
version: 1.25.2
version: 1.25.3

crystal: ">= 0.36.1"

Expand Down
6 changes: 4 additions & 2 deletions src/groups.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module Office365::Groups
# https://docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http
def list_groups_request(q : String? = nil)
if q.presence
def list_groups_request(q : String? = nil, filter : String? = nil)
if filter.presence
filter_param = filter
elsif q.presence
filter_param = "startswith(displayName, '#{q}')"
end

Expand Down

0 comments on commit 72bbe61

Please sign in to comment.