Sample Code
From Developer's API
(→Code disclaimer information) |
|||
Line 10: | Line 10: | ||
==Code disclaimer information== | ==Code disclaimer information== | ||
− | + | All sample code provided by 1ShoppingCart is for illustrative purposes only. These examples have not been thoroughly tested under all conditions. 1ShoppingCart, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. | |
− | + | ||
− | All sample code | + | |
All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed | All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed |
Revision as of 19:49, 26 May 2008
The following sample code has been provided in several different development platforms, as listed below. Within each platform sample package, there are two files.
- OneShopAPI
- OneShopNotificationListener
The OneShopAPI is a wrapper class to the 1ShoppingCart API. Public methods are exposed to call specific methods of the API, such as GetOrdersList, GetOrderById etc. Private methods exist to formulate the request data and sent the request to the API.
The OneShopNotificationListener is a stub program intended to demonstrate how to receive notifications from the 1ShoppingCart API and in turn use the notification data to retrieve detailed information from the API.
Contents |
Code disclaimer information
All sample code provided by 1ShoppingCart is for illustrative purposes only. These examples have not been thoroughly tested under all conditions. 1ShoppingCart, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.
All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed
.NET 2.0 (C#)
OneShopNotificationListener.cs
ASP
OneShopNotificationListener.asp
PHP
OneShopNotificationListener.php
Coldfusion
OneShopNotificationListener.cfm
Perl
OneShopNotificationListener.pl
JSP
OneShopNotificationListener.jsp