Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($json_api_response === false) {
- //try via http
- $api_url = 'http://api.fixer.io/latest';
- $json_api_response = td_remote_http::get_page($api_url, __CLASS__);
- if ($json_api_response === false) {
- td_log::log(__FILE__, __FUNCTION__, 'Api call failed', $api_url);
- return 'Api call failed';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment