CC-2129 : Retry automatic upload to Soundcloud if Internet connection problem
static retries/wait time right now.
This commit is contained in:
parent
fe97a25e28
commit
a9d288385b
2 changed files with 24 additions and 20 deletions
|
@ -48,22 +48,12 @@ class ATSoundcloud {
|
|||
'track[description]' => $description
|
||||
);
|
||||
|
||||
try {
|
||||
$response = json_decode(
|
||||
$this->_soundcloud->post('tracks', $track_data),
|
||||
true
|
||||
);
|
||||
|
||||
echo var_dump($response);
|
||||
}
|
||||
catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "could not get soundcloud token";
|
||||
}
|
||||
|
||||
$response = json_decode(
|
||||
$this->_soundcloud->post('tracks', $track_data),
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue