Skip to content

Instantly share code, notes, and snippets.

@donners77
Forked from danbarratt/gist:1068916
Last active December 22, 2015 04:39
Show Gist options
  • Save donners77/6418895 to your computer and use it in GitHub Desktop.
Save donners77/6418895 to your computer and use it in GitHub Desktop.
var querystrings = new System.Collections.Generic.Dictionary<string, string>();
querystrings.Add("where", "ContactNumber = \"123\"");
querystrings.Add("order", "Name DESC");
IConsumerRequest filteredGetContactRequest = consumerSession
.Request()
.ForMethod("GET")
.WithQueryParameters((IDictionary)querystrings)
.ForUri(new Uri("https://api.xero.com/api.xro/2.0/Contacts"))
.SignWithToken(accessToken);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment