Answer the question
In order to leave comments, you need to log in
Crooked Odnoklassniki API?
Good day, I ran into a problem with a strange response from the Odnoklassniki API, when I requested a discussion, it gave me the following json
{
"discussion": {
"title": "Imagine that one fine day you suddenly have a sister and father, about which you , neither she knew anything before. In addition, along with your newfound relatives, you have to pull off a scam for 15 million. In such a situation, something will definitely go awry! \nWatch the comedy "The Family Heist" in our Video Store!",
"message": "Theme",
"object_type": "GROUP_TOPIC",
"object_id": "67119978214769",
"creation_date": "2017-06-08 17:20:18",
"last_activity_date": "1970-01-01 02:59:59",
"last_user_access_date": "1970-01-01 02:59:59",
"new_comments_count": 0,
"total_comments_count": 0,
"like_count": 4,
"liked_it": false,
"ref_objects": [
{
"type" : "GROUP",
"id": "53279181701233"
}
],
"attrs": {
"flags": "c,l,s,unsb"
}
},
"entities": {
"themes": [
{
"id" : "67119978214769",
"title": "Imagine that one day you suddenly have a sister and a father that neither you nor she knew anything about before. In addition, along with your newfound relatives, you have to pull off a scam for 15 million. In this things are bound to go awry!\nWatch Family Heist comedy in our Video Store!",
"images": [
{
"type": "group",
"id": "856252022129",
"pic50x50": " https: //i.mycdn.me/image?id=856252022129&t=32&plc=... ",
"pic128x128": " https://i.mycdn.me/image?id=856252022129&t=23&plc=... ",
"pic640x480": "https://i.mycdn.me/image?id=856252022129&t=0&plc=A... ",
"group_id": "53279181701233",
"author_type": "GROUP"
},
{
"type": "group",
"id": "856252021873",
"pic50x50": " https://i.mycdn.me/image?id=856252021873&t=32&plc=... ",
"pic128x128": " https://i.mycdn.me /image?id=856252021873&t=23&plc=... ",
"pic640x480": " https://i.mycdn.me/image?id=856252021873&t=0&plc=A... ",
"group_id": "53279181701233",
"author_type": "GROUP"
},
{
"type": "group",
"id": "856252021617",
"pic50x50": " https://i.mycdn.me/image?id=856252021617&t=32&plc=... ",
"pic128x128": " https ://i.mycdn.me/image?id=856252021617&t=23&plc=... ",
"pic640x480": " https://i.mycdn.me/image?id=856252021617&t=0&plc=A... " ,
"group_id": "53279181701233",
"author_type": "GROUP"
}
],
"attrs": {
"p":3
}
}
],
"groups": [
{
"uid": "53279181701233",
"name": "Rostelecom. Official page"
}
]
}
}
what's the point, when creating a link
using this json, you get this link https://ok.ru/discussions/3/53279181701233/6711997...
it's not working, so attrs=p=3 and should be equal to 1
Question to the developers of classmates, how is this possible?
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