1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Use proxy settings on all get Requests

This commit is contained in:
Afterster 2015-02-05 13:56:12 +01:00
parent be383bfca9
commit 411ad4b06c
15 changed files with 40 additions and 44 deletions

View file

@ -94,7 +94,7 @@ class AmpacheBitly {
$apiurl = 'http://api.bit.ly/v3/shorten?login=' . $this->bitly_username . '&apiKey=' . $this->bitly_api_key . '&longUrl=' . urlencode($url) . '&format=json';
try {
debug_event($this->name, 'Bit.ly api call: ' . $apiurl, '5');
$request = Requests::get($apiurl);
$request = Requests::get($apiurl, array(), Core::requests_options());
$shorturl = json_decode($request->body)->data->url;
} catch (Exception $e) {
debug_event($this->name, 'Bit.ly api http exception: ' . $e->getMessage(), '1');