AttributeError: 'unicode' object has no attribute 'get'
for x in get_dialog(vkapi).get('items'):
print ('User ID: ', x.get('message', {}).get('user_id'))
for x in get_dialog(vkapi).get('items'):
for k, v in x['message'].items():
if k == 'user_id':
print ('User ID:', v)
else:
print ('Key: ', k, ' Value: ', v)