developer:soap-1.3:methods:searchproducts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap-1.3:methods:searchproducts [2010/08/09 13:38]
epouchak
developer:soap-1.3:methods:searchproducts [2010/10/12 16:41]
irina
Line 140: Line 140:
 ==== VB ==== ==== VB ====
 <code vb> <code vb>
-  ​Dim client ​As usaepay.usaepayService ​= New usaepay.usaepayService +Dim MatchAll As Boolean 
-  Dim token As usaepay.ueSecurityToken+        MatchAll = False 
 +        Dim searchParams(1) ​As usaepay.SearchParam 
 +        searchParams(0) ​= New usaepay.SearchParam 
 +        ​searchParams(0).Field = "​Created"​ 
 +        searchParams(0).Type = "​gt"​ 
 +        searchParams(0).Value = "​2010-09-07"​
  
-  token Me.CreateToken("982lz9VsLm87MA54Sv8E582h8OZMArL6", "443311")+        Dim SearchResults As usaepay.ProductSearchResult ​New usaepay.ProductSearchResult 
 +        SearchResults = client.searchProducts(token, searchParams,​ MatchAll, "​0", ​"1000", "created")
  
-  Dim MatchAll As Boolean+        MsgBox(SearchResults.ProductsMatched) 
 +</​code>​
  
-  MatchAll ​False+==== .NET C# ==== 
 +<code c> 
 +usaepay.SearchParam[] param = new usaepay.SearchParam[1];​ 
 +            param[0] = new usaepay.SearchParam();​ 
 +            param[0].Field = "​Created";​ 
 +            param[0].Type = "​Contains";​ 
 +            param[0].Value = "​2010-09-01";​
  
-  Dim searchParams(1) As usaepay.SearchParam +            Boolean matchAll ​true; 
-    searchParams(0) ​New usaepay.SearchParam +            ​string start = "0"; 
-    ​searchParams(0).Field ​= "Created+            ​string limit = "10"; 
-    ​searchParams(0).Type ​= "eq+            ​string sort = "created";
-    ​searchParams(0).Value ​= "2009-02-19"+
  
-  Dim SearchResults As usaepay.TransactionSearchResult ​New usaepay.TransactionSearchResult +            ​usaepay.ProductSearchResult response ​new usaepay.ProductSearchResult();
-  SearchResults = client.searchTransactions(token, searchParams,​ MatchAll, 0, 1000, "​created"​)+
  
-  MsgBox(SearchResults.TransactionsMatched)+            try 
 +            { 
 +                response = client.searchProducts(token,​ param, matchAll, start, limit, sort); 
 +                MessageBox.Show(string.Concat(response.ProductsMatched));​ 
 +            } 
 +            catch (Exception err) 
 +            { 
 +                MessageBox.Show(err.Message)
 +            }
 </​code>​ </​code>​
- 
- 
  
 ==== Coldfusion ==== ==== Coldfusion ====
developer/soap-1.3/methods/searchproducts.txt · Last modified: 2010/10/12 16:41 by irina

Page Tools