Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

Use PowerShell to connect to via a Private application

Started by Tommy Sharp -   in API Authentication

Greetings all!

I am attempting to connect to our Xero instance using powershell and a Private application.
I have setup the Private application and linked it to our company, uploaded the public key and now have the consumer key and secret.

Is anyone able to help me with how I now need to use this to authenticate to the api using the Invoke-RestMethod feature of Powershell...

Or is the suggested method to just go the "Public" application route and do OAuth?



Have a look at https://developer.xero.com/documentation/tools/postman it's very usefull.

Henzard Kruger
Certified Advisor and Full Stack developer
Picahoo cc - 0711304241 - henzard@picahoo.co.za
Skype: henzard, Gtalk: henzardkruger@gmail.com
Quality is remembered long after the price is forgotten

I abide by the 3 message rule. After 3 messages we skype.

Henzard Kruger