src/Bynder/Api/Impl/BynderApi.php
public function userLogin($username, $password)
    {
        return $this->requestHandler->sendRequestAsync('POST', 'api/v4/users/login/',
            [
                'form_params' => [
                    'username' => $username,
                    'password' => $password
                ]
            ])->then(
            function ($result) {
                $this->requestHandler->setAccessTokenCredentials($result['tokenKey'], $result['tokenSecret']);
                return $result;
            }
        );
    }
public function userLogin($username, $password)
    {
        return $this->requestHandler->sendRequestAsync('POST', 'api/v4/users/login/',
            [
                'form_params' => [
                    'username' => $username,
                    'password' => $password
                ]
            ])->then(
            function ($result) {
                $this->requestHandler->setAccessTokenCredentials($result['tokenKey'], $result['tokenSecret']);
                return $result;
            }
        );
    }
public function userLogin ( $ username , $ password ) { return $ this -> requestHandler -> sendRequestAsync ( 'POST' , 'api/v4/users/login/' , [ 'form_params' => [ 'username' => $ username , 'password' => $ password ] ] ) -> then ( function ( $ result ) { $ this -> requestHandler -> setAccessTokenCredentials ( $ result [ 'tokenKey' ] , $ result [ 'tokenSecret' ] ) ; return $ result ; } ) ; }
Log in a user with username and password.
If successful the retrieves OAUTH access tokens.

@deprecated

@param $username
@param $password

@return \GuzzleHttp\Promise\PromiseInterface
@throws \Exception
Log in a user with username and password . If successful the retrieves OAUTH access tokens .