ここでは、付加的なヴィジョン ユーザーと PHP のバージョン < 5.2.0。サーバーに組み込んだ 5.2.0 より新しいバージョンの PHP がある場合は、変更を加える必要はありません。
ファイルには。
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];