[#172] getClientMembershipList returns an object instead of list of objects

Migrated from Redmine #172 | Author: Sergey Yarlov
Status: New | Priority: Normal | Created: 2018-05-29


I need to get all membership for client (API documentation | SimplyBook.me Online Scheduling), and then iterate through it, but I can’t because API request returns useless response

response_json={'result': {'1': {'id': '1', 'name': 'name1', 'description': 'description1', ... }, 'id': '0', 'jsonrpc': '2.0'}

It should be:

response_json={'result': [{'id': '1', 'name': 'name1', 'description': ... }, {...}], 'id': '0', 'jsonrpc': '2.0'}

Dmytro Bondarev wrote:

Hi! Thank you. it looks strange. we will fix it.