developer:soap-1.3:methods:getreport

Differences

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

Link to this comparison view

Last revision Both sides next revision
developer:soap-1.3:methods:getreport [2010/06/01 15:03]
tem created
developer:soap-1.3:methods:getreport [2010/09/01 17:24]
irina
Line 112: Line 112:
  
 ?>  ?> 
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string report = "​creditcard:​errors by date ";
 +
 +            usaepay.FieldValue[] options = new usaepay.FieldValue[2];​
 +            for (int i = 0; i < 2; i++)
 +            {
 +                options[i] = new usaepay.FieldValue();​
 +            }
 +
 +            options[0].Field = "Start date"; options[0].Value = "​2010-08-01";​
 +            options[1].Field = "End date"; options[1].Value = "​2010-08-16";​
 +
 +            string format = "​csv";​
 +
 +            string response;
 +
 +            try
 +            {
 +                response = client.getReport(token,​ report, options, format);
 +                Byte[] binaryData = new Byte[3];
 +                binaryData = Convert.FromBase64String(response);​
 +
 +                MessageBox.Show(Encoding.UTF8.GetString(binaryData));​
 +
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.3/methods/getreport.txt ยท Last modified: 2010/10/13 15:40 by irina

Page Tools