Google Places API 请求的会话令牌参数的正确拼写是什么?
What is the correct spelling of the session token parameter for Google Places API requests?
The documentation 用于 Google 地方的会话令牌 API 在整个文档中将参数称为 sessiontoken
和 session_token
。哪一个是正确的?
使用 sessiontoken
和 session_token
参数发出请求会导致:
{
"error_message": "Invalid request. Only one of the 'sessiontoken' or 'session_token' parameters are allowed.",
"predictions": [],
"status": "INVALID_REQUEST"
}
所以显然两者都可以接受。
The documentation 用于 Google 地方的会话令牌 API 在整个文档中将参数称为 sessiontoken
和 session_token
。哪一个是正确的?
使用 sessiontoken
和 session_token
参数发出请求会导致:
{
"error_message": "Invalid request. Only one of the 'sessiontoken' or 'session_token' parameters are allowed.",
"predictions": [],
"status": "INVALID_REQUEST"
}
所以显然两者都可以接受。