Quickbooks online API with oauth2

风流意气都作罢 提交于 2019-12-06 11:59:04

Is there a way to obtain the authorization code without authenticate and authorize?

No... but read below.

I need to automate this task to make API calls in the backend with PHP.

You are misunderstanding how OAuth (either 1 or 2) works.

The very first time you connect you will be prompted to authenticate/authorize access to the QuickBooks Online data.

You are then given a refresh token (or access token depending on if you're using OAuth2 vs. OAuth1).

You then store that refresh token (or access token for OAuth1) and can use that token going forward to make your requests, unattended, without requiring the user to be involved at all.

Key take-away: You only need the user involved the VERY FIRST TIME you connect, and then never again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!