Closed norberto5 closed 3 months ago
System.Net.Http.HttpRequestException: 'Received status code BadRequest for url https://api.brickowl.com:443/v1/inventory/list?active_only=True'
Based on docs, it should be either 1 or 0, not True or False
active_only (Optional) - Include only items that are for sale and have a quantity > 0. 0 or 1. Default: 1 API docs
Reproduction code: await client.GetInventoryAsync(activeOnly: true);
await client.GetInventoryAsync(activeOnly: true);
yep, that's right:
https://github.com/stephanstapel/BrickOwlSharp/blob/1ae651df446f3ed7308ced33e30a2da02c56afd4/BrickOwlSharp.Client/BrickOwlClient.cs#L255
System.Net.Http.HttpRequestException: 'Received status code BadRequest for url https://api.brickowl.com:443/v1/inventory/list?active_only=True'
Based on docs, it should be either 1 or 0, not True or False
Reproduction code:
await client.GetInventoryAsync(activeOnly: true);