So I was able to get the XML service working by using postman. However, when I try to do the same things through the sample .net application I get this exception:
An unhandled exception of type 'CookComputing.XmlRpc.XmlRpcInvalidXmlRpcException' occurred in CookComputing.XmlRpcV2.dll
Additional information: Response XML not valid XML-RPC - root element not methodResponse.
Here is the code I'm using, using OAuth2:
private static void OAuth()
const string application = "";
const string accessToken = "";
var customer = new OAuthCustomer(application, accessToken);
var client = customer.Connect();
var users = client.DataService.Query<User>();
var currentUser = client.DataService.GetUserInfo();
//UPDATE a contact
Console.Out.WriteLine(client.ContactService.Update(4393, setter =>
setter.Set(c => c.FirstName, "Joe");
setter.Set(c => c.LastName, "Bobertson");
Also, is there a way to have a token that is permanent? I have a website where my customers contact information will be updated. I need to be able to update contacts in infusionsoft as it occurs on our site. Very inconvenient if I have to create a service that re-creates the token every day.