@@ -324,7 +324,7 @@ To sort the returned data, pass in the ```sort_by``` method argument.
324324Each resource supports a unique set of valid sort fields and can only be sorted by one field at a
325325time.
326326
327- The argument value is a C# ``` Dictionary<string, object > ``` object that has a property of the
327+ The argument value is a C# ``` Dictionary<string, string > ``` object that has a property of the
328328resource field name sort on and a value of either ``` "asc" ``` or ``` "desc" ``` to specify the sort
329329order.
330330
@@ -341,7 +341,7 @@ using FilesCom.Models;
341341
342342// users sorted by username
343343var args = new Dictionary <string , object >();
344- var sortArgs = new Dictionary <string , object >();
344+ var sortArgs = new Dictionary <string , string >();
345345sortArgs .Add (" username" , " asc" );
346346args .Add (" sort_by" , sortArgs );
347347
@@ -371,7 +371,7 @@ single field.
371371Each resource supports a unique set of valid filter fields, filter combinations, and combinations of
372372filters and sort fields.
373373
374- The passed in argument value is a C# ``` Dictionary<string, object > ``` object that has a property of
374+ The passed in argument value is a C# ``` Dictionary<string, string > ``` object that has a property of
375375the resource field name to filter on and a passed in value to use in the filter comparison.
376376
377377#### Filter Types
@@ -390,8 +390,8 @@ using FilesCom.Models;
390390
391391// non admin users
392392var args = new Dictionary <string , object >();
393- var filterArgs = new Dictionary <string , object >();
394- filterArgs .Add (" not_site_admin" , true );
393+ var filterArgs = new Dictionary <string , string >();
394+ filterArgs .Add (" not_site_admin" , " true" );
395395args .Add (" filter" , filterArgs );
396396
397397try
@@ -416,7 +416,7 @@ using FilesCom.Models;
416416
417417// users who haven't logged in since 2024-01-01
418418var args = new Dictionary <string , object >();
419- var filterArgs = new Dictionary <string , object >();
419+ var filterArgs = new Dictionary <string , string >();
420420filterArgs .Add (" last_login_at" ," 2024-01-01" );
421421args .Add (" filter_gteq" , filterArgs );
422422
@@ -442,7 +442,7 @@ using FilesCom.Models;
442442
443443// users whose usernames start with 'test'
444444var args = new Dictionary <string , object >();
445- var filterArgs = new Dictionary <string , object >();
445+ var filterArgs = new Dictionary <string , string >();
446446filterArgs .Add (" username" ," test" );
447447args .Add (" filter_prefix" , filterArgs );
448448
@@ -468,12 +468,12 @@ using FilesCom.Models;
468468
469469// users whose usernames start with 'test' and are not admins
470470var args = new Dictionary <string , object >();
471- var filterPrefixArgs = new Dictionary <string , object >();
472- var filterArgs = new Dictionary <string , object >();
473- var sortArgs = new Dictionary <string , object >();
471+ var filterPrefixArgs = new Dictionary <string , string >();
472+ var filterArgs = new Dictionary <string , string >();
473+ var sortArgs = new Dictionary <string , string >();
474474filterPrefixArgs .Add (" username" ," test" );
475- filterArgs .Add (" not_site_admin" , true );
476- sortArgs .Add (" last_login_at " , " asc" );
475+ filterArgs .Add (" not_site_admin" , " true" );
476+ sortArgs .Add (" username " , " asc" );
477477args .Add (" filter_prefix" , filterPrefixArgs );
478478args .Add (" filter" , filterArgs );
479479args .Add (" sort_by" , sortArgs );
0 commit comments