Search the Community
Showing results for tags 'php'.
Hey! I managed to set up the auth request via Postman and received access and refresh token. I stored the refresh token in our database and was able to make further api requests with php. For oauth params i was using grant_type 'refresh_token', and for data i provided something like this: $this->oauthParams = array( 'client_id' => '[my client id]', 'client_secret' => '[my client secret]', 'grant_type' => 'refresh_token', 'refresh_token' => $refreshToken, ); And this was working fine for about 3, 4 days. Then suddenly, without changing any of this code since the first setup (i checked git history and all), this stopped working. Every call for getting new tokens results in a "failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request" response. What could be the cause of this issue? Is there a better, more stabile way of getting the access to api? Thank you for your time :)