Skip to content

Instantly share code, notes, and snippets.

@danbarratt
Created July 7, 2011 05:07
Show Gist options
  • Save danbarratt/1068916 to your computer and use it in GitHub Desktop.
Save danbarratt/1068916 to your computer and use it in GitHub Desktop.
Get a contact from Xero API using the ContactNumber field
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