square-php-sdk icon indicating copy to clipboard operation
square-php-sdk copied to clipboard

How to get access token the non-legacy way ?

Open mhcwebdesign opened this issue 1 month ago • 0 comments

For a given code and application_id and application_secret how exactly do I get the access token using the new non-legacy API ?

Google AI claims this, which I think is wrong:

You cannot use an OAuthClient class in the current (non-legacy) Square PHP SDK because that class was part of the retired, legacy connect-php-sdk package. The correct, non-legacy class to use is OAuthApi, which is accessed via the main SquareClient instance.

?

mhcwebdesign avatar Nov 17 '25 13:11 mhcwebdesign