Created
August 2, 2011 04:54
-
-
Save XeroAPI/1119628 to your computer and use it in GitHub Desktop.
XeroAPI.Net Mini App
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
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