source/AllegroRestApi.php
/**
     * Refreshes access token using given 
     * credentials
     *
     * @param   string  $refreshToken Refresh token
     * @param   string  $clientId     Client ID
     * @param   string  $clientSecret Client secret
     * @param   string  $redirectUri  Redirect URI
     * @return  object
     */
Refreshes access token using given
credentials


Refreshes access token using given credentials
public static function refreshToken($refreshToken, $clientId, $clientSecret, $redirectUri)
    {
        $api = new AllegroRestApi(null, null);
        return $api->sendRequest("https://allegro.pl/auth/oauth/token"
            . "?grant_type=refresh_token"
            . "&refresh_token=$refreshToken"
            . "&redirect_uri=$redirectUri",
            'POST', 
            array(), 
            array(
                'Authorization' => 'Basic ' . base64_encode("$clientId:$clientSecret")
            )
        );
    }
public static function refreshToken ( $ refreshToken , $ clientId , $ clientSecret , $ redirectUri ) { $ api = new AllegroRestApi ( null , null ) ; return $ api -> sendRequest ( " https://allegro.pl/auth/oauth/token " . " ?grant_type=refresh_token " . " &refresh_token= $ refreshToken " . " &redirect_uri= $ redirectUri " , 'POST' , array ( ) , array ( 'Authorization' => 'Basic ' . base64_encode ( " $ clientId : $ clientSecret " ) ) ) ; }
Refreshes access token using given
 credentials
Refreshes access token using given credentials
// Creating an instance of class // Returning response