-
https://github.com/Krutonium/libPantryDotNet The issue is that I can't seem to get any data it sends to work. My programs output is as follows (With commentary from me)
I cannot figure out why it's not getting the JSON. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Krutonium Awesome work, I'd love to include your library here one day once you're done! While I'm not too familiar with I have a hunch that the I'm not 100% sure if that's the fix but I hope that helps? Here's a snippet (
|
Beta Was this translation helpful? Give feedback.
@Krutonium Awesome work, I'd love to include your library here one day once you're done!
While I'm not too familiar with
.NET
a few things did stick out when I was looking at the request logic.I have a hunch that the
POST
request (used to create a new basket) needs to have aContent-Type
header added to it for things to work as intended. Also, thecontent
itself may need to be parsed a certain way?I'm not 100% sure if that's the fix but I hope that helps?
Here's a snippet (
C#
) that creates a basket and logs the response