Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the data structure of chat response according to the updates from Ozon #102

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

Pireirik
Copy link
Contributor

@Pireirik Pireirik commented Sep 9, 2024

The example of a chat list on the Ozon API document was wrong.
The real response data has an array of chats. And there are no embedded objects inside the array. Each chat object only has keys listed below.

  • chat_id
  • chat_status
  • chat_type
  • created_at
  • first_unread_message_id
  • last_message_id
  • unread_count.

The real response looks like the image below.
chat_response

@diPhantxm
Copy link
Owner

Hi!
Seems you're right. We should really check what API returns exactly rather than read docs :)
Looks good, but you need to resolve conflicts

@diPhantxm diPhantxm merged commit 895ef8b into diPhantxm:master Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants