Closed Marixlive closed 4 years ago
i use version 3.4.0 and this is the doc site Setting custom cURL options
Hi! Thank you for the kind words!
I'm guessing you're not able to get an access token either? It's poorly documented, but it is possible to pass a Request
instance to the Session
constructor too. For example:
$requestOptions = [
// All cURL options...
];
$options = [
'auto_retry' => true
];
$request = new SpotifyWebAPI\Request($options);
$session = new SpotifyWebAPI\Session('ID', 'SECRET', 'REDIRECT_URI or empty string', $request);
$api = new SpotifyWebAPI\SpotifyWebAPI([], null, $request);
curl_options
aren't passed on to the Request
instance and auto_retry
needs to be set on the
SpotifyWebAPI
instance. I'll try to make this more clear in the documentation. I'll also update the docs with better info on how to pass a Request
instanceto
Session`.
I hope this solves your issue!
Hey Man. Thanks very much for this amazing php libary. I like to use a proxy server for the api calls.
The auto_retry options works perfectly if i use this code.
Now i use this code to set a proxy with the curl options in php but nothing happens.
I also tried to set the options on the Request object as described in the updated docs from your libary.
i cant get this to work, do you have any ideas?
i use this script to test a php curl call over a http web proxy. this example is working.
Thank you very much for help and have a nice weekend. matthias