Answer the question
In order to leave comments, you need to log in
Why "First API Request" users.get returns city.id but not city.title?
Hello, I created an iFrame application for the VKontakte network and indicated
as the First request to the API :
method=users.get&user_ids={viewer_id}&fields=sex,city,photo_big&format=JSON&v=5.52
response: [{
id: 597xxxxx,
first_name: 'Alexander',
last_name: 'Farber',
city: {
id: 1945522,
title: 'Bochum'
},
photo_50: 'http://cs5344.vk....1265/e_9ae5906d.jpg',
verified: 0
}]
[api_result] => {"response":[{
"uid":597xxxxx,
"first_name":"Alexander"
,"last_name":"Farber",
"sex":2,
"city":1945522,
"photo_big":"http:\/\/cs5344.vk.me\/u59751265\/a_047c17e7.jpg"
}]}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question