rhysnhall / etsy-php-sdk

PHP SDK for Etsy API v3.
MIT License
47 stars 36 forks source link

Update Client #3

Closed adilhanomeronder closed 3 years ago

adilhanomeronder commented 3 years ago
[$access_token, $refresh_token] = $client->requestAccessToken(
    $redirect_uri,
    $code,
    $verifier
);

[$access_token, $refresh_token] = $client->refreshAccessToken($refresh_token);

 Hello, if I'm not mistaken, if we want to use it as above, we need to fix it this way, otherwise it gives the following error

 Notice: Undefined offset: 0 in and 1 in
rhysnhall commented 3 years ago

This is true prior to PHP 7.1. PHP 7.1 onwards we can use arrays with keys for a list. I'll update the requirements to specify that PHP 7.1 is the minimum supported version.