Savan S
Savan S

Reputation: 417

XERO Api is forcing to open broswer and click manually on access for 30 minutes button

I am integrating xero api in my application. I have purchased api. When I request for oauth_verifier code using unauthorized token, they are forcing to open web browser. On web page they have link saying that "Allow for 30 minutes". After clicking manually on that link they redirect to callback url with my authentication complete. I want to automate this using api only. Why they are forcing to open browser and click on allow for 30 mins link? I have downloaded sample code for C# from sample code - xero c#

Screenshot for page which is xero forcing to open in browser

Upvotes: 1

Views: 492

Answers (2)

Jesse Smith
Jesse Smith

Reputation: 91

This is absolute garbage. Totally circumvents the intent of an api.

Upvotes: 0

RobinXero
RobinXero

Reputation: 54

The Xero API allows for 30 minute access when using a Public App, as you have noted the user will need to re-authorise every 30 minutes.

A Partner App allows for this process to be automated without user intervention. To be granted a Partner App you will need to get in touch with the Developer Relations team here: https://developer.xero.com/partner/#become-a-partner

Upvotes: 1

Related Questions