I am integrating the Xero api using public app with my laravel project which is a API project. I have gone through the xero documentation, and official youtube video (https://youtu.be/BzZpgSHdKfU) for xero-api integration.
I am using library calcinai/xero-php
and referring to: https://github.com/calcinai/xero-php/blob/master/examples/public.php
Here i am facing an problem while integrating the api because after hitting /oauth/RequestToken
endpoint, it required a manual action which is opens oauth/Authorize?oauth_token={oauth_token}
(here oauth_token
received in earlier request) to get a OTP or oauth_verifier
code to complete authentication process.
In my project i want to do whole authentication process at back-end which i believe not works because of the manual action required. May be i perceived and doing it wrong way, Please suggest me right way or any alternate.
manual action -> hitting the url from browser.
Thanks in advance.