I will try to answer and help you.
This is not working because browsers do not allow different domains async calls it is a mechanism that is used for security reasons and it is called same-domain-policy
You do not see the response because the browser is blocking it, if you use a REST plugin for firefox or chrome like POSTMAN you can see that actually there is a response, I indeed obtained a response from your link using postman:
{"userId":1368648652999913,"profile":{"firstDate":"20150202","currentTimeZone":{"id":"Europe/Berlin","offset":7200},"localization":{"language":"en","locale":"en_US","firstWeekDay":1,"metric":true},"caloriesAvailable":false,"platform":"ios"}}
You can make a proxy server (with php for example) to make the call for you and then use jquery to make the ajax to that proxy server, I made a simple proxy for you and it works, and the $.ajax call will work against it you can use it if you want:
<?php
function executeRequest($url, $parameters = array(), $http_method = 'GET', array $http_headers = null, $form_content_type = 'multipart/form-data', $getResponseHeaders = false)
{
$certificate_file = null;
$curl_options = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_CUSTOMREQUEST => $http_method
);
if ($getResponseHeaders){
$curl_options[CURLOPT_HEADER] = true;
}
switch($http_method) {
case 'POST':
$curl_options[CURLOPT_POST] = true;
/* No break */
case 'PUT':
case 'PATCH':
/**
* Passing an array to CURLOPT_POSTFIELDS will encode the data as multipart/form-data,
* while passing a URL-encoded string will encode the data as application/x-www-form-urlencoded.
* http://php.net/manual/en/function.curl-setopt.php
*/
if(is_array($parameters) && 'application/x-www-form-urlencoded' === $form_content_type) {
$parameters = http_build_query($parameters, null, '&');
}
$curl_options[CURLOPT_POSTFIELDS] = $parameters;
break;
case 'HEAD':
$curl_options[CURLOPT_NOBODY] = true;
/* No break */
case 'DELETE':
case 'GET':
if (is_array($parameters)) {
$url .= '?' . http_build_query($parameters, null, '&');
} elseif ($parameters) {
$url .= '?' . $parameters;
}
break;
default:
break;
}
$curl_options[CURLOPT_URL] = $url;
if (is_array($http_headers)) {
$header = array();
foreach($http_headers as $key => $parsed_urlvalue) {
$header[] = "$key: $parsed_urlvalue";
}
$curl_options[CURLOPT_HTTPHEADER] = $header;
}
$ch = curl_init();
curl_setopt_array($ch, $curl_options);
// https handling
if (!empty($certificate_file)) {
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, $certificate_file);
} else {
// bypass ssl verification
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
}
if (!empty($curl_options)) {
curl_setopt_array($ch, $curl_options);
}
$result = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$content_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
if ($curl_error = curl_error($ch)) {
throw new Exception($curl_error, null);
} else {
$json_decode = json_decode($result, true);
}
curl_close($ch);
return array(
'result' => (null === $json_decode) ? $result : $json_decode,
'code' => $http_code,
'content_type' => $content_type
);
}
function getUserProfile($url){
$parameters = array();
$http_headers = array('Accept'=>'application/json',
'Content-Type'=>'application/x-www-form-urlencoded');
$result = executeRequest($url, $parameters, 'GET', $http_headers, 0);
return $result;
}
$url = $_GET['url'];
$result = getUserProfile($url);
echo $result['result'];
//Example usage:
//index.php?url=https://api.moves-app.com/api/1.1/user/profile?access_token=7hACUBaguM0UI497MrDKJlvYPHu5813EErwFM6UJ7wURsI2d8iLj1BZ0R7Hru2gH
?>