drosendo Posted July 21, 2016 Share Posted July 21, 2016 Hi everyone, Here goes a small contribution: ever wanted to connect to a remote API? Add //Documentation: http://guzzle3.readthedocs.io/docs.html //Declare an alias to Guzzle in your project file's use Client to access Guzzle: use \Guzzle\Http\Client; $client = Client('https://' . $url . '/api/{version}', array( 'version' => 'v1', 'request.options' => array( 'auth' => array($user, $pass, 'Basic'), ) )); Anyone contributing on this? All the best! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.