A
A
Alexey Semenyuk2015-05-06 08:38:28
Classmates
Alexey Semenyuk, 2015-05-06 08:38:28

Why is photos.getAlbums "PARAM: Invalid parameter fields value: [aid,title]"?

api.odnoklassniki.ru/api/photos/getAlbums?
gid=***&application_key=***&format=json&fields=aid,title&session_key=***&sig=ce749ef3ca41cbf4a8549b735f756e0a
actual request...
server response
{"error_code":100,"error_msg":"PARAM : Invalid parameter fields value : [aid,title]","error_data":null}
fields for group album
apiok.ru/wiki/display/api/fields+ru
group_album
aid
title
created
created_ms
photos_count
like_summary
group_id
user_id
author_type
author_name
like_allowed
modify_allowd
delete_allowed
add_photo_allowed
figured out, you need to set group_album. field name

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ozhiganov, 2015-05-07
@wonchoe

That's right.
For almost all methods (with minor exceptions), fields must be specified as entity.field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question