I want a code written in PHP that takes a WooCommerce store URL as input.
It should then send an authorization request to the WooCommerce store along with certain read and write requests. This opens the WooCommerce backend and the admin Accepts.
This sends an access token back to the PHP which then has to be saved along with the shop URL.
Basically an oAuth2 handshake between PHP and any wordpress website.