developer:soap-1.1:methods:searchcustomers

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.1:methods:searchcustomers [2009/06/24 13:49]
charlie created
developer:soap-1.1:methods:searchcustomers [2010/10/21 15:37]
irina
Line 106: Line 106:
 </​code>​ </​code>​
  
 +==== .NET VB ====
 +<code vb>
 +Dim matchAll As Boolean
 +        matchAll = True
 +
 +        Dim search(0) As usaepay.SearchParam
 +
 +        search(0) = New usaepay.SearchParam()
 +
 +        search(0).Field = "​Amount"​
 +        search(0).Type = "​equals"​
 +        search(0).Value = "​10.00"​
 +
 +        Dim response As usaepay.CustomerSearchResult = New usaepay.CustomerSearchResult
 +
 +        response = client.searchCustomers(token,​ search, matchAll, "​0",​ "​10"​)
 +        MsgBox(response.CustomersMatched)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +Boolean matchAll;
 +            matchAll = true;
 +
 +            string[] fields = new string[3];
 +            usaepay.SearchParam[] search = new usaepay.SearchParam[2];​
 +            search[0] = new usaepay.SearchParam();​
 +
 +            search[0].Field = "​amount";​
 +            search[0].Type = "​gt";​
 +            search[0].Value = "​10.00";​
 +
 +            usaepay.CustomerSearchResult response = new usaepay.CustomerSearchResult();​
 +
 +            try
 +            {
 +                response = client.searchCustomers(token,​ search, matchAll, "​0",​ "​10"​);​
 +
 +                MessageBox.Show(response.CustomersMatched);​
 +
 +            }
 +
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +
 +</​code>​
developer/soap-1.1/methods/searchcustomers.txt ยท Last modified: 2010/10/21 15:37 by irina

Page Tools