# Saturday, September 03, 2011

In this post I want to show you how to create a very simple Windows Console client for The Smart Shopping List using Visual Studio & the RestSharp REST library.

  • Create a Windows Console Application using Visual Studio

image

 

image

 

  • Add the following code
image

 

  • When you build & run the application you should get an output similar to this:

image

You could also create, read, update & delete (CRUD) Stores, Product Categories, Products & Shopping List. Please check this post for more information.   

posted on Saturday, September 03, 2011 8:03:49 PM UTC  #    Comments [0]
# Friday, September 02, 2011

You can access The Smart Shopping List Web Api from any client as follows:

image

  • On the Edit Shopper screen press Save

image

  • When The Smart Shopping List Home page displays then you are registered

image

Accept: application/vnd.cyberbizsoft.ssl+xml

Authorization: Basic Your-User-ID:Your-Password (Base64 encoded)

When using POST, PUT & DELETE you must also add:

Content-Type: application/vnd.cyberbizsoft.ssl+xml

The entry point will provide the links that are available and as you add stores, products, etc. the application state will be updated.

image

posted on Friday, September 02, 2011 4:29:35 PM UTC  #    Comments [0]