여기는 PHP와 사용자를 위한 추가 quickfix 버전 < 5.2.0. 버전 보다 최신 버전인 PHP 5.2.0 서버에 instaled 경우에 변경 하지 않아도.
파일:
Code:
forum root -> includes -> vbenterprisetranlator_class_translator.php
찾기 (라인 472 근처 시작 해야 있음):
PHP Code:
$token = json_decode (curl_exec($obj_connection));
self::$token_ttl = time() + ($token->{'expires_in'});
self::$token = 'Authorization: Bearer '.$token->{'access_token'};
curl_close($obj_connection);
return 'Authorization: Bearer '.$token->{'access_token'};
그리고 함께 교체:
PHP Code:
$fulltoken = curl_exec($obj_connection);
preg_match('/{"access_token":"(.*?)"/', $fulltoken, $token);
preg_match('/"expires_in":"(.*?)"/', $fulltoken, $expires);
self::$token_ttl = time() + $expires[1];
self::$token = 'Authorization: Bearer '.$token[1];
curl_close($obj_connection);
return 'Authorization: Bearer '.$token[1];