Skip to content

Instantly share code, notes, and snippets.

@XeroAPI
Created August 2, 2011 04:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XeroAPI/1119628 to your computer and use it in GitHub Desktop.
Save XeroAPI/1119628 to your computer and use it in GitHub Desktop.
XeroAPI.Net Mini App
static void Main(string[] args)
{
IOAuthSession session = new XeroApi.OAuth.XeroApiPrivateSession(
"XeroAPI Mini App",
"YOUR-CONSUMER-KEY",
new X509Certificate2(@"D:\Your-Certificate.pfx", "your-pfx-password"));
Repository repository = new Repository(session);
Console.WriteLine("You're connected to " + repository.Organisation.Name);
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment