Wednesday, December 11, 2013

Using the Shopify API from .NET

If you're looking for a way to talk to Shopify from .NET (either C# or VB.NET), you'll probably come across this "lightweight" .NET client.

Word of warning: it's 10 MB, and pretty hard-core.

If you're writing a private app (as opposed to a public one), things are much simpler; you don't need all the OAuth stuff for starters. After a bit of trial and error, I got this to work:




To generate an API key and password, go to http://your-store.myshopify.com/admin/apps, and click "Create a private API key" at the bottom.

6 comments:

  1. Hello,
    I have used this for fetching my shopify store details like customers, orders datas for the .net windows service through the above code..
    Its works awesomely..
    Thanks to U sir...

    ReplyDelete
  2. Hi,
    I tried above code but i got error ''The request was aborted: Could not create SSL/TLS secure channel.'' please help me.

    ReplyDelete
  3. @Vikram: you need to add this line to enable SSL/TLS:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;

    ReplyDelete
  4. This works great! Thanks ever so much!

    ReplyDelete
  5. hi i tried this but unable to run it.. "couldn't locate the web.config file".. Please help me in this

    ReplyDelete