Kevin-Bronsdijk / kraken-net

Official Kraken.io .Net client
https://kraken.io
GNU General Public License v2.0
19 stars 5 forks source link

Square strategy resize should accept a "size" (instead of width and height) #2

Closed karim79 closed 7 years ago

karim79 commented 7 years ago

Can we fix the square strategy to accept a "size" instead of a width and height? Currently issuing a square strategy request fails since Kraken.io API expects a "size" to be set instead, as per https://kraken.io/docs/image-resizing

"resize": { "size": 100, "strategy": "square" }

Thanks!

Kevin-Bronsdijk commented 7 years ago

@karim79 Yes, I must have missed that parameter. Will add it right away and release a new version shortly.

Kevin-Bronsdijk commented 7 years ago

Version 1.1.4 has been published on Nuget.org

Package location - https://www.nuget.org/packages/kraken-net/1.1.4 Related tests / sample code - Client_CustomRequestChangeSizeSquare_IsTrue