So I'm trying to access a client's API to ultimately build a product feed. Their API Dev Docs show examples using curl commands. I"m wondering if someone can help me figure out how to achieve the same thing in C# (either a command line exe, or an asp.net app).
- I first need to create a session.
The curl example:
curl -v -u {client_id}:{client_secret} "https://www.clientsite.com/api/v2.0/sessionid"
- Then I need to call the API for products with the session just created (A cookie named JSESSIONID is created).
The curl example:
curl -v -u {client_id}:{client_secret} "https://www.clientsite.com/api/v2.0/products;jsessionid={jsessionid}"
Any help is appreciated!