Created
July 7, 2011 05:07
-
-
Save danbarratt/1068916 to your computer and use it in GitHub Desktop.
Get a contact from Xero API using the ContactNumber field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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