src/Bynder/Api/Impl/BynderApi.php
public function getAccessToken()
    {
        return $this->requestHandler->sendRequestAsync('POST', 'api/v4/oauth/access_token/')->then(
            function ($tokenValues) {
                parse_str($tokenValues, $tokenArray);
                $token = $tokenArray['oauth_token'];
                $tokenSecret = $tokenArray['oauth_token_secret'];
                $this->requestHandler->setAccessTokenCredentials($token, $tokenSecret);
                return $tokenArray;
            }
        );
    }
public function getAccessToken()
    {
        return $this->requestHandler->sendRequestAsync('POST', 'api/v4/oauth/access_token/')->then(
            function ($tokenValues) {
                parse_str($tokenValues, $tokenArray);
                $token = $tokenArray['oauth_token'];
                $tokenSecret = $tokenArray['oauth_token_secret'];
                $this->requestHandler->setAccessTokenCredentials($token, $tokenSecret);
                return $tokenArray;
            }
        );
    }
public function getAccessToken ( ) { return $ this -> requestHandler -> sendRequestAsync ( 'POST' , 'api/v4/oauth/access_token/' ) -> then ( function ( $ tokenValues ) { parse_str ( $ tokenValues , $ tokenArray ) ; $ token = $ tokenArray [ 'oauth_token' ] ; $ tokenSecret = $ tokenArray [ 'oauth_token_secret' ] ; $ this -> requestHandler -> setAccessTokenCredentials ( $ token , $ tokenSecret ) ; return $ tokenArray ; } ) ; }
Exchanges the authorised request token for a valid access token.
If successful the request token is immediately expired and the access tokens are set in the credentials.

@return \GuzzleHttp\Promise\PromiseInterface
@throws \Exception
Exchanges the authorised request token for a valid access token . If successful the request token is immediately expired and the access tokens are set in the credentials .