moltin / ios-sdk

Swift SDK for the Moltin eCommerce API
https://moltin.github.io/ios-sdk
MIT License
37 stars 18 forks source link

cart api #10

Closed smoi closed 7 years ago

smoi commented 7 years ago

The cart api is not returning an array of product but a key value json. Shouldn't it be an array? How do you loop around products?

djmckee commented 7 years ago

Hey @smoi, the products array is found under the result key of the dictionary that gets returned from the API. You can access it from there and loop around it.