Exigo Web Services API v3.4.225

GetDownline

Gets nodes in a downline.

Input Properties

GetDownlineRequest
PropertyData TypeNotes
SortByLevelBoolean
BatchOffsetInt32
TreeType TreeType
CustomerIDInt32Unique identifier for a customer entity.
PeriodType Int32
PeriodID Int32Optional.
MaxLevelDepthInt32
CustomerTypes Int32[]Classification of a customer as defined by the company.
Ranks Int32[]
PayRanks Int32[]
VolumeFilters VolumeFilter[]
CustomerStatusTypesInt32[]
BatchSizeInt32Optional. Defaults to 1000 at a time.
VolumeFilter
PropertyData TypeNotes
VolumeID Int32
Compare NumericCompareType
ValueDecimal

Output Properties

GetDownlineResponse
PropertyData TypeNotes
NodesNodeResponse[]
RecordCountInt32
NodeResponse
PropertyData TypeNotes
CustomerIDInt32Unique identifier for a customer entity.
NodeIDInt32
ParentIDInt32
LevelInt32
PositionInt32
CustomerType Int32Classification of a customer as defined by the company.
CustomerStatus Int32Current status of a customer as defined by the company.
RankID Int32
PayRankID Int32
FirstNameString
LastNameString
CompanyString
EmailString
PhoneString
CreatedDateDateTime
Volume1 Decimal
Volume2 Decimal
Volume3 Decimal
Volume4 Decimal
Volume5 Decimal
Volume6 Decimal
Volume7 Decimal
Volume8 Decimal
Volume9 Decimal
Volume10 Decimal
Volume11 Decimal
Volume12 Decimal
Volume13 Decimal
Volume14 Decimal
Volume15 Decimal
Volume16 Decimal
Volume17 Decimal
Volume18 Decimal
Volume19 Decimal
Volume20 Decimal
Volume21 Decimal
Volume22 Decimal
Volume23 Decimal
Volume24 Decimal
Volume25 Decimal
Volume26 Decimal
Volume27 Decimal
Volume28 Decimal
Volume29 Decimal
Volume30 Decimal
Volume31 Decimal
Volume32 Decimal
Volume33 Decimal
Volume34 Decimal
Volume35 Decimal
Volume36 Decimal
Volume37 Decimal
Volume38 Decimal
Volume39 Decimal
Volume40 Decimal
Volume41 Decimal
Volume42 Decimal
Volume43 Decimal
Volume44 Decimal
Volume45 Decimal
Volume46 Decimal
Volume47 Decimal
Volume48 Decimal
Volume49 Decimal
Volume50 Decimal
Volume51 Decimal
Volume52 Decimal
Volume53 Decimal
Volume54 Decimal
Volume55 Decimal
Volume56 Decimal
Volume57 Decimal
Volume58 Decimal
Volume59 Decimal
Volume60 Decimal
Volume61 Decimal
Volume62 Decimal
Volume63 Decimal
Volume64 Decimal
Volume65 Decimal
Volume66 Decimal
Volume67 Decimal
Volume68 Decimal
Volume69 Decimal
Volume70 Decimal
Volume71 Decimal
Volume72 Decimal
Volume73 Decimal
Volume74 Decimal
Volume75 Decimal
Volume76 Decimal
Volume77 Decimal
Volume78 Decimal
Volume79 Decimal
Volume80 Decimal
Volume81 Decimal
Volume82 Decimal
Volume83 Decimal
Volume84 Decimal
Volume85 Decimal
Volume86 Decimal
Volume87 Decimal
Volume88 Decimal
Volume89 Decimal
Volume90 Decimal
Volume91 Decimal
Volume92 Decimal
Volume93 Decimal
Volume94 Decimal
Volume95 Decimal
Volume96 Decimal
Volume97 Decimal
Volume98 Decimal
Volume99 Decimal
Volume100 Decimal
Volume101 Decimal
Volume102 Decimal
Volume103 Decimal
Volume104 Decimal
Volume105 Decimal
Volume106 Decimal
Volume107 Decimal
Volume108 Decimal
Volume109 Decimal
Volume110 Decimal
Volume111 Decimal
Volume112 Decimal
Volume113 Decimal
Volume114 Decimal
Volume115 Decimal
Volume116 Decimal
Volume117 Decimal
Volume118 Decimal
Volume119 Decimal
Volume120 Decimal
Volume121 Decimal
Volume122 Decimal
Volume123 Decimal
Volume124 Decimal
Volume125 Decimal
Volume126 Decimal
Volume127 Decimal
Volume128 Decimal
Volume129 Decimal
Volume130 Decimal
Volume131 Decimal
Volume132 Decimal
Volume133 Decimal
Volume134 Decimal
Volume135 Decimal
Volume136 Decimal
Volume137 Decimal
Volume138 Decimal
Volume139 Decimal
Volume140 Decimal
Volume141 Decimal
Volume142 Decimal
Volume143 Decimal
Volume144 Decimal
Volume145 Decimal
Volume146 Decimal
Volume147 Decimal
Volume148 Decimal
Volume149 Decimal
Volume150 Decimal
Volume151 Decimal
Volume152 Decimal
Volume153 Decimal
Volume154 Decimal
Volume155 Decimal
Volume156 Decimal
Volume157 Decimal
Volume158 Decimal
Volume159 Decimal
Volume160 Decimal
Volume161 Decimal
Volume162 Decimal
Volume163 Decimal
Volume164 Decimal
Volume165 Decimal
Volume166 Decimal
Volume167 Decimal
Volume168 Decimal
Volume169 Decimal
Volume170 Decimal
Volume171 Decimal
Volume172 Decimal
Volume173 Decimal
Volume174 Decimal
Volume175 Decimal
Volume176 Decimal
Volume177 Decimal
Volume178 Decimal
Volume179 Decimal
Volume180 Decimal
Volume181 Decimal
Volume182 Decimal
Volume183 Decimal
Volume184 Decimal
Volume185 Decimal
Volume186 Decimal
Volume187 Decimal
Volume188 Decimal
Volume189 Decimal
Volume190 Decimal
Volume191 Decimal
Volume192 Decimal
Volume193 Decimal
Volume194 Decimal
Volume195 Decimal
Volume196 Decimal
Volume197 Decimal
Volume198 Decimal
Volume199 Decimal
Volume200 Decimal

SOAP Request

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /3.0/ExigoApi.asmx HTTP/1.1
Host: api.exigo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.exigo.com/GetDownline"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ApiAuthentication xmlns="http://api.exigo.com/"> <LoginName>string</LoginName> <Password>string</Password> <Company>string</Company> <Identity>string</Identity> <RequestTimeUtc>dateTime</RequestTimeUtc> <Signature>string</Signature> </ApiAuthentication> </soap:Header> <soap:Body> <GetDownlineRequest xmlns="http://api.exigo.com/"> <SortByLevel>boolean</SortByLevel> <BatchOffset>int</BatchOffset> <TreeType>Enroller or UniLevel or Binary or Matrix or Stack</TreeType> <CustomerID>int</CustomerID> <PeriodType>int</PeriodType> <PeriodID>int</PeriodID> <MaxLevelDepth>int</MaxLevelDepth> <CustomerTypes> <int>int</int> </CustomerTypes> <Ranks> <int>int</int> </Ranks> <PayRanks> <int>int</int> </PayRanks> <VolumeFilters> <VolumeFilter> <VolumeID>int</VolumeID> <Compare>Equals or GreaterThan or LessThan</Compare> <Value>decimal</Value> </VolumeFilter> </VolumeFilters> <CustomerStatusTypes> <int>int</int> </CustomerStatusTypes> <BatchSize>int</BatchSize> </GetDownlineRequest> </soap:Body> </soap:Envelope>

SOAP Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetDownlineResult xmlns="http://api.exigo.com/"> <Nodes> <NodeResponse> <CustomerID>int</CustomerID> <NodeID>int</NodeID> <ParentID>int</ParentID> <Level>int</Level> <Position>int</Position> <CustomerType>int</CustomerType> <CustomerStatus>int</CustomerStatus> <RankID>int</RankID> <PayRankID>int</PayRankID> <FirstName>string</FirstName> <LastName>string</LastName> <Company>string</Company> <Email>string</Email> <Phone>string</Phone> <CreatedDate>dateTime</CreatedDate> <Volume1>decimal</Volume1> <Volume2>decimal</Volume2> <Volume3>decimal</Volume3> <Volume4>decimal</Volume4> <Volume5>decimal</Volume5> <Volume6>decimal</Volume6> <Volume7>decimal</Volume7> <Volume8>decimal</Volume8> <Volume9>decimal</Volume9> <Volume10>decimal</Volume10> <Volume11>decimal</Volume11> <Volume12>decimal</Volume12> <Volume13>decimal</Volume13> <Volume14>decimal</Volume14> <Volume15>decimal</Volume15> <Volume16>decimal</Volume16> <Volume17>decimal</Volume17> <Volume18>decimal</Volume18> <Volume19>decimal</Volume19> <Volume20>decimal</Volume20> <Volume21>decimal</Volume21> <Volume22>decimal</Volume22> <Volume23>decimal</Volume23> <Volume24>decimal</Volume24> <Volume25>decimal</Volume25> <Volume26>decimal</Volume26> <Volume27>decimal</Volume27> <Volume28>decimal</Volume28> <Volume29>decimal</Volume29> <Volume30>decimal</Volume30> <Volume31>decimal</Volume31> <Volume32>decimal</Volume32> <Volume33>decimal</Volume33> <Volume34>decimal</Volume34> <Volume35>decimal</Volume35> <Volume36>decimal</Volume36> <Volume37>decimal</Volume37> <Volume38>decimal</Volume38> <Volume39>decimal</Volume39> <Volume40>decimal</Volume40> <Volume41>decimal</Volume41> <Volume42>decimal</Volume42> <Volume43>decimal</Volume43> <Volume44>decimal</Volume44> <Volume45>decimal</Volume45> <Volume46>decimal</Volume46> <Volume47>decimal</Volume47> <Volume48>decimal</Volume48> <Volume49>decimal</Volume49> <Volume50>decimal</Volume50> <Volume51>decimal</Volume51> <Volume52>decimal</Volume52> <Volume53>decimal</Volume53> <Volume54>decimal</Volume54> <Volume55>decimal</Volume55> <Volume56>decimal</Volume56> <Volume57>decimal</Volume57> <Volume58>decimal</Volume58> <Volume59>decimal</Volume59> <Volume60>decimal</Volume60> <Volume61>decimal</Volume61> <Volume62>decimal</Volume62> <Volume63>decimal</Volume63> <Volume64>decimal</Volume64> <Volume65>decimal</Volume65> <Volume66>decimal</Volume66> <Volume67>decimal</Volume67> <Volume68>decimal</Volume68> <Volume69>decimal</Volume69> <Volume70>decimal</Volume70> <Volume71>decimal</Volume71> <Volume72>decimal</Volume72> <Volume73>decimal</Volume73> <Volume74>decimal</Volume74> <Volume75>decimal</Volume75> <Volume76>decimal</Volume76> <Volume77>decimal</Volume77> <Volume78>decimal</Volume78> <Volume79>decimal</Volume79> <Volume80>decimal</Volume80> <Volume81>decimal</Volume81> <Volume82>decimal</Volume82> <Volume83>decimal</Volume83> <Volume84>decimal</Volume84> <Volume85>decimal</Volume85> <Volume86>decimal</Volume86> <Volume87>decimal</Volume87> <Volume88>decimal</Volume88> <Volume89>decimal</Volume89> <Volume90>decimal</Volume90> <Volume91>decimal</Volume91> <Volume92>decimal</Volume92> <Volume93>decimal</Volume93> <Volume94>decimal</Volume94> <Volume95>decimal</Volume95> <Volume96>decimal</Volume96> <Volume97>decimal</Volume97> <Volume98>decimal</Volume98> <Volume99>decimal</Volume99> <Volume100>decimal</Volume100> <Volume101>decimal</Volume101> <Volume102>decimal</Volume102> <Volume103>decimal</Volume103> <Volume104>decimal</Volume104> <Volume105>decimal</Volume105> <Volume106>decimal</Volume106> <Volume107>decimal</Volume107> <Volume108>decimal</Volume108> <Volume109>decimal</Volume109> <Volume110>decimal</Volume110> <Volume111>decimal</Volume111> <Volume112>decimal</Volume112> <Volume113>decimal</Volume113> <Volume114>decimal</Volume114> <Volume115>decimal</Volume115> <Volume116>decimal</Volume116> <Volume117>decimal</Volume117> <Volume118>decimal</Volume118> <Volume119>decimal</Volume119> <Volume120>decimal</Volume120> <Volume121>decimal</Volume121> <Volume122>decimal</Volume122> <Volume123>decimal</Volume123> <Volume124>decimal</Volume124> <Volume125>decimal</Volume125> <Volume126>decimal</Volume126> <Volume127>decimal</Volume127> <Volume128>decimal</Volume128> <Volume129>decimal</Volume129> <Volume130>decimal</Volume130> <Volume131>decimal</Volume131> <Volume132>decimal</Volume132> <Volume133>decimal</Volume133> <Volume134>decimal</Volume134> <Volume135>decimal</Volume135> <Volume136>decimal</Volume136> <Volume137>decimal</Volume137> <Volume138>decimal</Volume138> <Volume139>decimal</Volume139> <Volume140>decimal</Volume140> <Volume141>decimal</Volume141> <Volume142>decimal</Volume142> <Volume143>decimal</Volume143> <Volume144>decimal</Volume144> <Volume145>decimal</Volume145> <Volume146>decimal</Volume146> <Volume147>decimal</Volume147> <Volume148>decimal</Volume148> <Volume149>decimal</Volume149> <Volume150>decimal</Volume150> <Volume151>decimal</Volume151> <Volume152>decimal</Volume152> <Volume153>decimal</Volume153> <Volume154>decimal</Volume154> <Volume155>decimal</Volume155> <Volume156>decimal</Volume156> <Volume157>decimal</Volume157> <Volume158>decimal</Volume158> <Volume159>decimal</Volume159> <Volume160>decimal</Volume160> <Volume161>decimal</Volume161> <Volume162>decimal</Volume162> <Volume163>decimal</Volume163> <Volume164>decimal</Volume164> <Volume165>decimal</Volume165> <Volume166>decimal</Volume166> <Volume167>decimal</Volume167> <Volume168>decimal</Volume168> <Volume169>decimal</Volume169> <Volume170>decimal</Volume170> <Volume171>decimal</Volume171> <Volume172>decimal</Volume172> <Volume173>decimal</Volume173> <Volume174>decimal</Volume174> <Volume175>decimal</Volume175> <Volume176>decimal</Volume176> <Volume177>decimal</Volume177> <Volume178>decimal</Volume178> <Volume179>decimal</Volume179> <Volume180>decimal</Volume180> <Volume181>decimal</Volume181> <Volume182>decimal</Volume182> <Volume183>decimal</Volume183> <Volume184>decimal</Volume184> <Volume185>decimal</Volume185> <Volume186>decimal</Volume186> <Volume187>decimal</Volume187> <Volume188>decimal</Volume188> <Volume189>decimal</Volume189> <Volume190>decimal</Volume190> <Volume191>decimal</Volume191> <Volume192>decimal</Volume192> <Volume193>decimal</Volume193> <Volume194>decimal</Volume194> <Volume195>decimal</Volume195> <Volume196>decimal</Volume196> <Volume197>decimal</Volume197> <Volume198>decimal</Volume198> <Volume199>decimal</Volume199> <Volume200>decimal</Volume200> </NodeResponse> </Nodes> <RecordCount>int</RecordCount> </GetDownlineResult> </soap:Body> </soap:Envelope>

C#

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.LoginName = "yourLoginName";

    auth.Password = "yourPassword";

    auth.Company = "yourCompany";

    api.ApiAuthenticationValue = auth;

 

    //Create Request

    GetDownlineRequest req = new GetDownlineRequest();

 

    req.SortByLevel = true;

    req.BatchOffset = 1;

    req.TreeType = TreeType.Enroller;

    req.CustomerID = 1;             //Unique identifier for a customer entity.

    req.PeriodType = 1;

    req.PeriodID = 1;

    req.MaxLevelDepth = 1;

 

    //Add CustomerTypes

    List<Int32> customertypes = new List<Int32>();

    customertypes.Add(1);

    customertypes.Add(2);

 

    //Now attach the list to the request

    req.CustomerTypes = customertypes.ToArray();

 

    //Add Ranks

    List<Int32> ranks = new List<Int32>();

    ranks.Add(1);

    ranks.Add(2);

 

    //Now attach the list to the request

    req.Ranks = ranks.ToArray();

 

    //Add PayRanks

    List<Int32> payranks = new List<Int32>();

    payranks.Add(1);

    payranks.Add(2);

 

    //Now attach the list to the request

    req.PayRanks = payranks.ToArray();

 

    //Add VolumeFilters

    List<VolumeFilter> volumefilters = new List<VolumeFilter>();

 

    VolumeFilter volumeFilter1 = new VolumeFilter();

    volumeFilter1.VolumeID = 1;

    volumeFilter1.Compare = NumericCompareType.Equals;

    volumeFilter1.Value = 1;

    volumefilters.Add(volumeFilter1);

 

    VolumeFilter volumeFilter2 = new VolumeFilter();

    volumeFilter2.VolumeID = 2;

    volumeFilter2.Compare = NumericCompareType.Equals;

    volumeFilter2.Value = 2;

    volumefilters.Add(volumeFilter2);

 

    //Now attach the list to the request

    req.VolumeFilters = volumefilters.ToArray();

 

    //Add CustomerStatusTypes

    List<Int32> customerstatustypes = new List<Int32>();

    customerstatustypes.Add(1);

    customerstatustypes.Add(2);

 

    //Now attach the list to the request

    req.CustomerStatusTypes = customerstatustypes.ToArray();

 

    //Send Request to Server and Get Response

    GetDownlineResponse res = api.GetDownline(req);

 

    //Now examine the results:

 

    foreach (NodeResponse node in res.Nodes)

    {

        Console.WriteLine("CustomerID: {0}", node.CustomerID);

        Console.WriteLine("NodeID: {0}", node.NodeID);

        Console.WriteLine("ParentID: {0}", node.ParentID);

        Console.WriteLine("Level: {0}", node.Level);

        Console.WriteLine("Position: {0}", node.Position);

        Console.WriteLine("CustomerType: {0}", node.CustomerType);

        Console.WriteLine("CustomerStatus: {0}", node.CustomerStatus);

        Console.WriteLine("RankID: {0}", node.RankID);

        Console.WriteLine("PayRankID: {0}", node.PayRankID);

        Console.WriteLine("FirstName: {0}", node.FirstName);

        Console.WriteLine("LastName: {0}", node.LastName);

        Console.WriteLine("Company: {0}", node.Company);

        Console.WriteLine("Email: {0}", node.Email);

        Console.WriteLine("Phone: {0}", node.Phone);

        Console.WriteLine("CreatedDate: {0}", node.CreatedDate);

        Console.WriteLine("Volume1: {0}", node.Volume1);

        Console.WriteLine("Volume2: {0}", node.Volume2);

        Console.WriteLine("Volume3: {0}", node.Volume3);

        Console.WriteLine("Volume4: {0}", node.Volume4);

        Console.WriteLine("Volume5: {0}", node.Volume5);

        Console.WriteLine("Volume6: {0}", node.Volume6);

        Console.WriteLine("Volume7: {0}", node.Volume7);

        Console.WriteLine("Volume8: {0}", node.Volume8);

        Console.WriteLine("Volume9: {0}", node.Volume9);

        Console.WriteLine("Volume10: {0}", node.Volume10);

        Console.WriteLine("Volume11: {0}", node.Volume11);

        Console.WriteLine("Volume12: {0}", node.Volume12);

        Console.WriteLine("Volume13: {0}", node.Volume13);

        Console.WriteLine("Volume14: {0}", node.Volume14);

        Console.WriteLine("Volume15: {0}", node.Volume15);

        Console.WriteLine("Volume16: {0}", node.Volume16);

        Console.WriteLine("Volume17: {0}", node.Volume17);

        Console.WriteLine("Volume18: {0}", node.Volume18);

        Console.WriteLine("Volume19: {0}", node.Volume19);

        Console.WriteLine("Volume20: {0}", node.Volume20);

        Console.WriteLine("Volume21: {0}", node.Volume21);

        Console.WriteLine("Volume22: {0}", node.Volume22);

        Console.WriteLine("Volume23: {0}", node.Volume23);

        Console.WriteLine("Volume24: {0}", node.Volume24);

        Console.WriteLine("Volume25: {0}", node.Volume25);

        Console.WriteLine("Volume26: {0}", node.Volume26);

        Console.WriteLine("Volume27: {0}", node.Volume27);

        Console.WriteLine("Volume28: {0}", node.Volume28);

        Console.WriteLine("Volume29: {0}", node.Volume29);

        Console.WriteLine("Volume30: {0}", node.Volume30);

        Console.WriteLine("Volume31: {0}", node.Volume31);

        Console.WriteLine("Volume32: {0}", node.Volume32);

        Console.WriteLine("Volume33: {0}", node.Volume33);

        Console.WriteLine("Volume34: {0}", node.Volume34);

        Console.WriteLine("Volume35: {0}", node.Volume35);

        Console.WriteLine("Volume36: {0}", node.Volume36);

        Console.WriteLine("Volume37: {0}", node.Volume37);

        Console.WriteLine("Volume38: {0}", node.Volume38);

        Console.WriteLine("Volume39: {0}", node.Volume39);

        Console.WriteLine("Volume40: {0}", node.Volume40);

        Console.WriteLine("Volume41: {0}", node.Volume41);

        Console.WriteLine("Volume42: {0}", node.Volume42);

        Console.WriteLine("Volume43: {0}", node.Volume43);

        Console.WriteLine("Volume44: {0}", node.Volume44);

        Console.WriteLine("Volume45: {0}", node.Volume45);

        Console.WriteLine("Volume46: {0}", node.Volume46);

        Console.WriteLine("Volume47: {0}", node.Volume47);

        Console.WriteLine("Volume48: {0}", node.Volume48);

        Console.WriteLine("Volume49: {0}", node.Volume49);

        Console.WriteLine("Volume50: {0}", node.Volume50);

        Console.WriteLine("Volume51: {0}", node.Volume51);

        Console.WriteLine("Volume52: {0}", node.Volume52);

        Console.WriteLine("Volume53: {0}", node.Volume53);

        Console.WriteLine("Volume54: {0}", node.Volume54);

        Console.WriteLine("Volume55: {0}", node.Volume55);

        Console.WriteLine("Volume56: {0}", node.Volume56);

        Console.WriteLine("Volume57: {0}", node.Volume57);

        Console.WriteLine("Volume58: {0}", node.Volume58);

        Console.WriteLine("Volume59: {0}", node.Volume59);

        Console.WriteLine("Volume60: {0}", node.Volume60);

        Console.WriteLine("Volume61: {0}", node.Volume61);

        Console.WriteLine("Volume62: {0}", node.Volume62);

        Console.WriteLine("Volume63: {0}", node.Volume63);

        Console.WriteLine("Volume64: {0}", node.Volume64);

        Console.WriteLine("Volume65: {0}", node.Volume65);

        Console.WriteLine("Volume66: {0}", node.Volume66);

        Console.WriteLine("Volume67: {0}", node.Volume67);

        Console.WriteLine("Volume68: {0}", node.Volume68);

        Console.WriteLine("Volume69: {0}", node.Volume69);

        Console.WriteLine("Volume70: {0}", node.Volume70);

        Console.WriteLine("Volume71: {0}", node.Volume71);

        Console.WriteLine("Volume72: {0}", node.Volume72);

        Console.WriteLine("Volume73: {0}", node.Volume73);

        Console.WriteLine("Volume74: {0}", node.Volume74);

        Console.WriteLine("Volume75: {0}", node.Volume75);

        Console.WriteLine("Volume76: {0}", node.Volume76);

        Console.WriteLine("Volume77: {0}", node.Volume77);

        Console.WriteLine("Volume78: {0}", node.Volume78);

        Console.WriteLine("Volume79: {0}", node.Volume79);

        Console.WriteLine("Volume80: {0}", node.Volume80);

        Console.WriteLine("Volume81: {0}", node.Volume81);

        Console.WriteLine("Volume82: {0}", node.Volume82);

        Console.WriteLine("Volume83: {0}", node.Volume83);

        Console.WriteLine("Volume84: {0}", node.Volume84);

        Console.WriteLine("Volume85: {0}", node.Volume85);

        Console.WriteLine("Volume86: {0}", node.Volume86);

        Console.WriteLine("Volume87: {0}", node.Volume87);

        Console.WriteLine("Volume88: {0}", node.Volume88);

        Console.WriteLine("Volume89: {0}", node.Volume89);

        Console.WriteLine("Volume90: {0}", node.Volume90);

        Console.WriteLine("Volume91: {0}", node.Volume91);

        Console.WriteLine("Volume92: {0}", node.Volume92);

        Console.WriteLine("Volume93: {0}", node.Volume93);

        Console.WriteLine("Volume94: {0}", node.Volume94);

        Console.WriteLine("Volume95: {0}", node.Volume95);

        Console.WriteLine("Volume96: {0}", node.Volume96);

        Console.WriteLine("Volume97: {0}", node.Volume97);

        Console.WriteLine("Volume98: {0}", node.Volume98);

        Console.WriteLine("Volume99: {0}", node.Volume99);

        Console.WriteLine("Volume100: {0}", node.Volume100);

        Console.WriteLine("Volume101: {0}", node.Volume101);

        Console.WriteLine("Volume102: {0}", node.Volume102);

        Console.WriteLine("Volume103: {0}", node.Volume103);

        Console.WriteLine("Volume104: {0}", node.Volume104);

        Console.WriteLine("Volume105: {0}", node.Volume105);

        Console.WriteLine("Volume106: {0}", node.Volume106);

        Console.WriteLine("Volume107: {0}", node.Volume107);

        Console.WriteLine("Volume108: {0}", node.Volume108);

        Console.WriteLine("Volume109: {0}", node.Volume109);

        Console.WriteLine("Volume110: {0}", node.Volume110);

        Console.WriteLine("Volume111: {0}", node.Volume111);

        Console.WriteLine("Volume112: {0}", node.Volume112);

        Console.WriteLine("Volume113: {0}", node.Volume113);

        Console.WriteLine("Volume114: {0}", node.Volume114);

        Console.WriteLine("Volume115: {0}", node.Volume115);

        Console.WriteLine("Volume116: {0}", node.Volume116);

        Console.WriteLine("Volume117: {0}", node.Volume117);

        Console.WriteLine("Volume118: {0}", node.Volume118);

        Console.WriteLine("Volume119: {0}", node.Volume119);

        Console.WriteLine("Volume120: {0}", node.Volume120);

        Console.WriteLine("Volume121: {0}", node.Volume121);

        Console.WriteLine("Volume122: {0}", node.Volume122);

        Console.WriteLine("Volume123: {0}", node.Volume123);

        Console.WriteLine("Volume124: {0}", node.Volume124);

        Console.WriteLine("Volume125: {0}", node.Volume125);

        Console.WriteLine("Volume126: {0}", node.Volume126);

        Console.WriteLine("Volume127: {0}", node.Volume127);

        Console.WriteLine("Volume128: {0}", node.Volume128);

        Console.WriteLine("Volume129: {0}", node.Volume129);

        Console.WriteLine("Volume130: {0}", node.Volume130);

        Console.WriteLine("Volume131: {0}", node.Volume131);

        Console.WriteLine("Volume132: {0}", node.Volume132);

        Console.WriteLine("Volume133: {0}", node.Volume133);

        Console.WriteLine("Volume134: {0}", node.Volume134);

        Console.WriteLine("Volume135: {0}", node.Volume135);

        Console.WriteLine("Volume136: {0}", node.Volume136);

        Console.WriteLine("Volume137: {0}", node.Volume137);

        Console.WriteLine("Volume138: {0}", node.Volume138);

        Console.WriteLine("Volume139: {0}", node.Volume139);

        Console.WriteLine("Volume140: {0}", node.Volume140);

        Console.WriteLine("Volume141: {0}", node.Volume141);

        Console.WriteLine("Volume142: {0}", node.Volume142);

        Console.WriteLine("Volume143: {0}", node.Volume143);

        Console.WriteLine("Volume144: {0}", node.Volume144);

        Console.WriteLine("Volume145: {0}", node.Volume145);

        Console.WriteLine("Volume146: {0}", node.Volume146);

        Console.WriteLine("Volume147: {0}", node.Volume147);

        Console.WriteLine("Volume148: {0}", node.Volume148);

        Console.WriteLine("Volume149: {0}", node.Volume149);

        Console.WriteLine("Volume150: {0}", node.Volume150);

        Console.WriteLine("Volume151: {0}", node.Volume151);

        Console.WriteLine("Volume152: {0}", node.Volume152);

        Console.WriteLine("Volume153: {0}", node.Volume153);

        Console.WriteLine("Volume154: {0}", node.Volume154);

        Console.WriteLine("Volume155: {0}", node.Volume155);

        Console.WriteLine("Volume156: {0}", node.Volume156);

        Console.WriteLine("Volume157: {0}", node.Volume157);

        Console.WriteLine("Volume158: {0}", node.Volume158);

        Console.WriteLine("Volume159: {0}", node.Volume159);

        Console.WriteLine("Volume160: {0}", node.Volume160);

        Console.WriteLine("Volume161: {0}", node.Volume161);

        Console.WriteLine("Volume162: {0}", node.Volume162);

        Console.WriteLine("Volume163: {0}", node.Volume163);

        Console.WriteLine("Volume164: {0}", node.Volume164);

        Console.WriteLine("Volume165: {0}", node.Volume165);

        Console.WriteLine("Volume166: {0}", node.Volume166);

        Console.WriteLine("Volume167: {0}", node.Volume167);

        Console.WriteLine("Volume168: {0}", node.Volume168);

        Console.WriteLine("Volume169: {0}", node.Volume169);

        Console.WriteLine("Volume170: {0}", node.Volume170);

        Console.WriteLine("Volume171: {0}", node.Volume171);

        Console.WriteLine("Volume172: {0}", node.Volume172);

        Console.WriteLine("Volume173: {0}", node.Volume173);

        Console.WriteLine("Volume174: {0}", node.Volume174);

        Console.WriteLine("Volume175: {0}", node.Volume175);

        Console.WriteLine("Volume176: {0}", node.Volume176);

        Console.WriteLine("Volume177: {0}", node.Volume177);

        Console.WriteLine("Volume178: {0}", node.Volume178);

        Console.WriteLine("Volume179: {0}", node.Volume179);

        Console.WriteLine("Volume180: {0}", node.Volume180);

        Console.WriteLine("Volume181: {0}", node.Volume181);

        Console.WriteLine("Volume182: {0}", node.Volume182);

        Console.WriteLine("Volume183: {0}", node.Volume183);

        Console.WriteLine("Volume184: {0}", node.Volume184);

        Console.WriteLine("Volume185: {0}", node.Volume185);

        Console.WriteLine("Volume186: {0}", node.Volume186);

        Console.WriteLine("Volume187: {0}", node.Volume187);

        Console.WriteLine("Volume188: {0}", node.Volume188);

        Console.WriteLine("Volume189: {0}", node.Volume189);

        Console.WriteLine("Volume190: {0}", node.Volume190);

        Console.WriteLine("Volume191: {0}", node.Volume191);

        Console.WriteLine("Volume192: {0}", node.Volume192);

        Console.WriteLine("Volume193: {0}", node.Volume193);

        Console.WriteLine("Volume194: {0}", node.Volume194);

        Console.WriteLine("Volume195: {0}", node.Volume195);

        Console.WriteLine("Volume196: {0}", node.Volume196);

        Console.WriteLine("Volume197: {0}", node.Volume197);

        Console.WriteLine("Volume198: {0}", node.Volume198);

        Console.WriteLine("Volume199: {0}", node.Volume199);

        Console.WriteLine("Volume200: {0}", node.Volume200);

    }

    Console.WriteLine("RecordCount: {0}", res.RecordCount);

}

catch (Exception ex)

{

    Console.WriteLine("Error: " + ex.Message);

}

VB.Net

Try

    'Create Main API Context Object

    Dim api as new ExigoApi()

 

    'Create Authentication Header

    Dim auth as new ApiAuthentication()

    auth.LoginName = "yourLoginName"

    auth.Password = "yourPassword"

    auth.Company = "yourCompany"

    api.ApiAuthenticationValue = auth

 

    'Create Request

    Dim req as new GetDownlineRequest()

 

    req.SortByLevel = true

    req.BatchOffset = 1

    req.TreeType = TreeType.Enroller

    req.CustomerID = 1

    req.PeriodType = 1

    req.PeriodID = 1

    req.MaxLevelDepth = 1

 

    'Add CustomerTypes

    Dim customertypes As New List(Of Int32)()

    customertypes.Add(1)

    customertypes.Add(2)

 

    'Now attach the list to the request

    req.CustomerTypes = customertypes.ToArray()

 

    'Add Ranks

    Dim ranks As New List(Of Int32)()

    ranks.Add(1)

    ranks.Add(2)

 

    'Now attach the list to the request

    req.Ranks = ranks.ToArray()

 

    'Add PayRanks

    Dim payranks As New List(Of Int32)()

    payranks.Add(1)

    payranks.Add(2)

 

    'Now attach the list to the request

    req.PayRanks = payranks.ToArray()

 

    'Add VolumeFilters

    Dim volumefilters As New List(Of VolumeFilter)()

 

    Dim volumeFilter1 as new VolumeFilter()

    volumeFilter1.VolumeID = 1

    volumeFilter1.Compare = NumericCompareType.Equals

    volumeFilter1.Value = 1

    volumefilters.Add(volumeFilter1)

 

    Dim volumeFilter2 as new VolumeFilter()

    volumeFilter2.VolumeID = 2

    volumeFilter2.Compare = NumericCompareType.Equals

    volumeFilter2.Value = 2

    volumefilters.Add(volumeFilter2)

 

    'Now attach the list to the request

    req.VolumeFilters = volumefilters.ToArray()

 

    'Add CustomerStatusTypes

    Dim customerstatustypes As New List(Of Int32)()

    customerstatustypes.Add(1)

    customerstatustypes.Add(2)

 

    'Now attach the list to the request

    req.CustomerStatusTypes = customerstatustypes.ToArray()

 

    'Send Request to Server and Get Response

    Dim res As GetDownlineResponse = api.GetDownline(req)

 

    'Now examine the results:

 

    For Each node As NodeResponse In res.Nodes

        Console.WriteLine("CustomerID: {0}", node.CustomerID)

        Console.WriteLine("NodeID: {0}", node.NodeID)

        Console.WriteLine("ParentID: {0}", node.ParentID)

        Console.WriteLine("Level: {0}", node.Level)

        Console.WriteLine("Position: {0}", node.Position)

        Console.WriteLine("CustomerType: {0}", node.CustomerType)

        Console.WriteLine("CustomerStatus: {0}", node.CustomerStatus)

        Console.WriteLine("RankID: {0}", node.RankID)

        Console.WriteLine("PayRankID: {0}", node.PayRankID)

        Console.WriteLine("FirstName: {0}", node.FirstName)

        Console.WriteLine("LastName: {0}", node.LastName)

        Console.WriteLine("Company: {0}", node.Company)

        Console.WriteLine("Email: {0}", node.Email)

        Console.WriteLine("Phone: {0}", node.Phone)

        Console.WriteLine("CreatedDate: {0}", node.CreatedDate)

        Console.WriteLine("Volume1: {0}", node.Volume1)

        Console.WriteLine("Volume2: {0}", node.Volume2)

        Console.WriteLine("Volume3: {0}", node.Volume3)

        Console.WriteLine("Volume4: {0}", node.Volume4)

        Console.WriteLine("Volume5: {0}", node.Volume5)

        Console.WriteLine("Volume6: {0}", node.Volume6)

        Console.WriteLine("Volume7: {0}", node.Volume7)

        Console.WriteLine("Volume8: {0}", node.Volume8)

        Console.WriteLine("Volume9: {0}", node.Volume9)

        Console.WriteLine("Volume10: {0}", node.Volume10)

        Console.WriteLine("Volume11: {0}", node.Volume11)

        Console.WriteLine("Volume12: {0}", node.Volume12)

        Console.WriteLine("Volume13: {0}", node.Volume13)

        Console.WriteLine("Volume14: {0}", node.Volume14)

        Console.WriteLine("Volume15: {0}", node.Volume15)

        Console.WriteLine("Volume16: {0}", node.Volume16)

        Console.WriteLine("Volume17: {0}", node.Volume17)

        Console.WriteLine("Volume18: {0}", node.Volume18)

        Console.WriteLine("Volume19: {0}", node.Volume19)

        Console.WriteLine("Volume20: {0}", node.Volume20)

        Console.WriteLine("Volume21: {0}", node.Volume21)

        Console.WriteLine("Volume22: {0}", node.Volume22)

        Console.WriteLine("Volume23: {0}", node.Volume23)

        Console.WriteLine("Volume24: {0}", node.Volume24)

        Console.WriteLine("Volume25: {0}", node.Volume25)

        Console.WriteLine("Volume26: {0}", node.Volume26)

        Console.WriteLine("Volume27: {0}", node.Volume27)

        Console.WriteLine("Volume28: {0}", node.Volume28)

        Console.WriteLine("Volume29: {0}", node.Volume29)

        Console.WriteLine("Volume30: {0}", node.Volume30)

        Console.WriteLine("Volume31: {0}", node.Volume31)

        Console.WriteLine("Volume32: {0}", node.Volume32)

        Console.WriteLine("Volume33: {0}", node.Volume33)

        Console.WriteLine("Volume34: {0}", node.Volume34)

        Console.WriteLine("Volume35: {0}", node.Volume35)

        Console.WriteLine("Volume36: {0}", node.Volume36)

        Console.WriteLine("Volume37: {0}", node.Volume37)

        Console.WriteLine("Volume38: {0}", node.Volume38)

        Console.WriteLine("Volume39: {0}", node.Volume39)

        Console.WriteLine("Volume40: {0}", node.Volume40)

        Console.WriteLine("Volume41: {0}", node.Volume41)

        Console.WriteLine("Volume42: {0}", node.Volume42)

        Console.WriteLine("Volume43: {0}", node.Volume43)

        Console.WriteLine("Volume44: {0}", node.Volume44)

        Console.WriteLine("Volume45: {0}", node.Volume45)

        Console.WriteLine("Volume46: {0}", node.Volume46)

        Console.WriteLine("Volume47: {0}", node.Volume47)

        Console.WriteLine("Volume48: {0}", node.Volume48)

        Console.WriteLine("Volume49: {0}", node.Volume49)

        Console.WriteLine("Volume50: {0}", node.Volume50)

        Console.WriteLine("Volume51: {0}", node.Volume51)

        Console.WriteLine("Volume52: {0}", node.Volume52)

        Console.WriteLine("Volume53: {0}", node.Volume53)

        Console.WriteLine("Volume54: {0}", node.Volume54)

        Console.WriteLine("Volume55: {0}", node.Volume55)

        Console.WriteLine("Volume56: {0}", node.Volume56)

        Console.WriteLine("Volume57: {0}", node.Volume57)

        Console.WriteLine("Volume58: {0}", node.Volume58)

        Console.WriteLine("Volume59: {0}", node.Volume59)

        Console.WriteLine("Volume60: {0}", node.Volume60)

        Console.WriteLine("Volume61: {0}", node.Volume61)

        Console.WriteLine("Volume62: {0}", node.Volume62)

        Console.WriteLine("Volume63: {0}", node.Volume63)

        Console.WriteLine("Volume64: {0}", node.Volume64)

        Console.WriteLine("Volume65: {0}", node.Volume65)

        Console.WriteLine("Volume66: {0}", node.Volume66)

        Console.WriteLine("Volume67: {0}", node.Volume67)

        Console.WriteLine("Volume68: {0}", node.Volume68)

        Console.WriteLine("Volume69: {0}", node.Volume69)

        Console.WriteLine("Volume70: {0}", node.Volume70)

        Console.WriteLine("Volume71: {0}", node.Volume71)

        Console.WriteLine("Volume72: {0}", node.Volume72)

        Console.WriteLine("Volume73: {0}", node.Volume73)

        Console.WriteLine("Volume74: {0}", node.Volume74)

        Console.WriteLine("Volume75: {0}", node.Volume75)

        Console.WriteLine("Volume76: {0}", node.Volume76)

        Console.WriteLine("Volume77: {0}", node.Volume77)

        Console.WriteLine("Volume78: {0}", node.Volume78)

        Console.WriteLine("Volume79: {0}", node.Volume79)

        Console.WriteLine("Volume80: {0}", node.Volume80)

        Console.WriteLine("Volume81: {0}", node.Volume81)

        Console.WriteLine("Volume82: {0}", node.Volume82)

        Console.WriteLine("Volume83: {0}", node.Volume83)

        Console.WriteLine("Volume84: {0}", node.Volume84)

        Console.WriteLine("Volume85: {0}", node.Volume85)

        Console.WriteLine("Volume86: {0}", node.Volume86)

        Console.WriteLine("Volume87: {0}", node.Volume87)

        Console.WriteLine("Volume88: {0}", node.Volume88)

        Console.WriteLine("Volume89: {0}", node.Volume89)

        Console.WriteLine("Volume90: {0}", node.Volume90)

        Console.WriteLine("Volume91: {0}", node.Volume91)

        Console.WriteLine("Volume92: {0}", node.Volume92)

        Console.WriteLine("Volume93: {0}", node.Volume93)

        Console.WriteLine("Volume94: {0}", node.Volume94)

        Console.WriteLine("Volume95: {0}", node.Volume95)

        Console.WriteLine("Volume96: {0}", node.Volume96)

        Console.WriteLine("Volume97: {0}", node.Volume97)

        Console.WriteLine("Volume98: {0}", node.Volume98)

        Console.WriteLine("Volume99: {0}", node.Volume99)

        Console.WriteLine("Volume100: {0}", node.Volume100)

        Console.WriteLine("Volume101: {0}", node.Volume101)

        Console.WriteLine("Volume102: {0}", node.Volume102)

        Console.WriteLine("Volume103: {0}", node.Volume103)

        Console.WriteLine("Volume104: {0}", node.Volume104)

        Console.WriteLine("Volume105: {0}", node.Volume105)

        Console.WriteLine("Volume106: {0}", node.Volume106)

        Console.WriteLine("Volume107: {0}", node.Volume107)

        Console.WriteLine("Volume108: {0}", node.Volume108)

        Console.WriteLine("Volume109: {0}", node.Volume109)

        Console.WriteLine("Volume110: {0}", node.Volume110)

        Console.WriteLine("Volume111: {0}", node.Volume111)

        Console.WriteLine("Volume112: {0}", node.Volume112)

        Console.WriteLine("Volume113: {0}", node.Volume113)

        Console.WriteLine("Volume114: {0}", node.Volume114)

        Console.WriteLine("Volume115: {0}", node.Volume115)

        Console.WriteLine("Volume116: {0}", node.Volume116)

        Console.WriteLine("Volume117: {0}", node.Volume117)

        Console.WriteLine("Volume118: {0}", node.Volume118)

        Console.WriteLine("Volume119: {0}", node.Volume119)

        Console.WriteLine("Volume120: {0}", node.Volume120)

        Console.WriteLine("Volume121: {0}", node.Volume121)

        Console.WriteLine("Volume122: {0}", node.Volume122)

        Console.WriteLine("Volume123: {0}", node.Volume123)

        Console.WriteLine("Volume124: {0}", node.Volume124)

        Console.WriteLine("Volume125: {0}", node.Volume125)

        Console.WriteLine("Volume126: {0}", node.Volume126)

        Console.WriteLine("Volume127: {0}", node.Volume127)

        Console.WriteLine("Volume128: {0}", node.Volume128)

        Console.WriteLine("Volume129: {0}", node.Volume129)

        Console.WriteLine("Volume130: {0}", node.Volume130)

        Console.WriteLine("Volume131: {0}", node.Volume131)

        Console.WriteLine("Volume132: {0}", node.Volume132)

        Console.WriteLine("Volume133: {0}", node.Volume133)

        Console.WriteLine("Volume134: {0}", node.Volume134)

        Console.WriteLine("Volume135: {0}", node.Volume135)

        Console.WriteLine("Volume136: {0}", node.Volume136)

        Console.WriteLine("Volume137: {0}", node.Volume137)

        Console.WriteLine("Volume138: {0}", node.Volume138)

        Console.WriteLine("Volume139: {0}", node.Volume139)

        Console.WriteLine("Volume140: {0}", node.Volume140)

        Console.WriteLine("Volume141: {0}", node.Volume141)

        Console.WriteLine("Volume142: {0}", node.Volume142)

        Console.WriteLine("Volume143: {0}", node.Volume143)

        Console.WriteLine("Volume144: {0}", node.Volume144)

        Console.WriteLine("Volume145: {0}", node.Volume145)

        Console.WriteLine("Volume146: {0}", node.Volume146)

        Console.WriteLine("Volume147: {0}", node.Volume147)

        Console.WriteLine("Volume148: {0}", node.Volume148)

        Console.WriteLine("Volume149: {0}", node.Volume149)

        Console.WriteLine("Volume150: {0}", node.Volume150)

        Console.WriteLine("Volume151: {0}", node.Volume151)

        Console.WriteLine("Volume152: {0}", node.Volume152)

        Console.WriteLine("Volume153: {0}", node.Volume153)

        Console.WriteLine("Volume154: {0}", node.Volume154)

        Console.WriteLine("Volume155: {0}", node.Volume155)

        Console.WriteLine("Volume156: {0}", node.Volume156)

        Console.WriteLine("Volume157: {0}", node.Volume157)

        Console.WriteLine("Volume158: {0}", node.Volume158)

        Console.WriteLine("Volume159: {0}", node.Volume159)

        Console.WriteLine("Volume160: {0}", node.Volume160)

        Console.WriteLine("Volume161: {0}", node.Volume161)

        Console.WriteLine("Volume162: {0}", node.Volume162)

        Console.WriteLine("Volume163: {0}", node.Volume163)

        Console.WriteLine("Volume164: {0}", node.Volume164)

        Console.WriteLine("Volume165: {0}", node.Volume165)

        Console.WriteLine("Volume166: {0}", node.Volume166)

        Console.WriteLine("Volume167: {0}", node.Volume167)

        Console.WriteLine("Volume168: {0}", node.Volume168)

        Console.WriteLine("Volume169: {0}", node.Volume169)

        Console.WriteLine("Volume170: {0}", node.Volume170)

        Console.WriteLine("Volume171: {0}", node.Volume171)

        Console.WriteLine("Volume172: {0}", node.Volume172)

        Console.WriteLine("Volume173: {0}", node.Volume173)

        Console.WriteLine("Volume174: {0}", node.Volume174)

        Console.WriteLine("Volume175: {0}", node.Volume175)

        Console.WriteLine("Volume176: {0}", node.Volume176)

        Console.WriteLine("Volume177: {0}", node.Volume177)

        Console.WriteLine("Volume178: {0}", node.Volume178)

        Console.WriteLine("Volume179: {0}", node.Volume179)

        Console.WriteLine("Volume180: {0}", node.Volume180)

        Console.WriteLine("Volume181: {0}", node.Volume181)

        Console.WriteLine("Volume182: {0}", node.Volume182)

        Console.WriteLine("Volume183: {0}", node.Volume183)

        Console.WriteLine("Volume184: {0}", node.Volume184)

        Console.WriteLine("Volume185: {0}", node.Volume185)

        Console.WriteLine("Volume186: {0}", node.Volume186)

        Console.WriteLine("Volume187: {0}", node.Volume187)

        Console.WriteLine("Volume188: {0}", node.Volume188)

        Console.WriteLine("Volume189: {0}", node.Volume189)

        Console.WriteLine("Volume190: {0}", node.Volume190)

        Console.WriteLine("Volume191: {0}", node.Volume191)

        Console.WriteLine("Volume192: {0}", node.Volume192)

        Console.WriteLine("Volume193: {0}", node.Volume193)

        Console.WriteLine("Volume194: {0}", node.Volume194)

        Console.WriteLine("Volume195: {0}", node.Volume195)

        Console.WriteLine("Volume196: {0}", node.Volume196)

        Console.WriteLine("Volume197: {0}", node.Volume197)

        Console.WriteLine("Volume198: {0}", node.Volume198)

        Console.WriteLine("Volume199: {0}", node.Volume199)

        Console.WriteLine("Volume200: {0}", node.Volume200)

    Next

    Console.WriteLine("RecordCount: {0}", res.RecordCount)

Catch ex As Exception

    Console.WriteLine("Error: " & ex.Message)

End Try

PHP

Note: PHP is not officially supported.

<?php

try

{

    //Setup the SoapClient and Authentication

    $api = new SoapClient("http://api.exigo.com/3.0/ExigoApi.asmx?WSDL");

    $ns = "http://api.exigo.com/";

    $auth = array()

    $auth["LoginName"] = new SoapVar("yourLoginName",XSD_STRING,null,null,null,$ns);

    $auth["Password"] = new SoapVar("yourPassword",XSD_STRING,null,null,null,$ns);

    $auth["Company"] = new SoapVar("yourCompany",XSD_STRING,null,null,null,$ns);

    $headerBody = new SoapVar($auth, SOAP_ENC_OBJECT);

    $header = new SoapHeader($ns, 'ApiAuthentication', $headerBody);

    $api->__setSoapHeaders(array($header));

 

    //Create Request

 

    $req->SortByLevel = 1;

    $req->BatchOffset = 1;

    $req->TreeType = 1;

    $req->CustomerID = 1;

    $req->PeriodType = 1;

    $req->PeriodID = 1;

    $req->MaxLevelDepth = 1;

 

    //Add CustomerTypes

 

 

 

    //Now attach the list to the request

    req.CustomerTypes = array(customerType1,customerType2);

 

    //Add Ranks

 

 

 

    //Now attach the list to the request

    req.Ranks = array(rank1,rank2);

 

    //Add PayRanks

 

 

 

    //Now attach the list to the request

    req.PayRanks = array(payRank1,payRank2);

 

    //Add VolumeFilters

 

    $volumeFilter1->VolumeID = 1;

    $volumeFilter1->Compare = 1;

    $volumeFilter1->Value = 1;

 

    $volumeFilter2->VolumeID = 2;

    $volumeFilter2->Compare = 2;

    $volumeFilter2->Value = 2;

 

    //Now attach the list to the request

    req.VolumeFilters = array(volumeFilter1,volumeFilter2);

 

    //Add CustomerStatusTypes

 

 

 

    //Now attach the list to the request

    req.CustomerStatusTypes = array(customerStatusType1,customerStatusType2);

 

    //Send Request to Server and Get Response

    $res = $api.GetDownline($req);

 

    //Now examine the results:

}

catch (SoapFault $ex)

{

    echo "Error: ", $ex->getMessage();

}

?>

Java

Note: Java is not officially supported.

try

{

    //Create Main API Context Object

    ExigoApi api = new ExigoApi();

 

    //Create Authentication Header

    ApiAuthentication auth = new ApiAuthentication();

    auth.setLoginName("yourLoginName");

    auth.setPassword("yourPassword");

    auth.setCompany("yourCompany");

    api.setApiAuthenticationValue(auth);

 

    //Create Request

    GetDownlineRequest req = new GetDownlineRequest();

 

    req.setSortByLevel(1);

    req.setBatchOffset(1);

    req.setTreeType(1);

    req.setCustomerID(1);

    req.setPeriodType(1);

    req.setPeriodID(1);

    req.setMaxLevelDepth(1);

 

    //Add CustomerTypes

    ArrayOfSystem.Int32 customertypes = new ArrayOfSystem.Int32();

 

    Int32 customerType1 = new Int32();

    customertypes.Add(customerType1);

 

    Int32 customerType2 = new Int32();

    customertypes.Add(customerType2);

 

    //Now attach the list to the request

    req.setCustomerTypes(customertypes);

 

    //Add Ranks

    ArrayOfSystem.Int32 ranks = new ArrayOfSystem.Int32();

 

    Int32 rank1 = new Int32();

    ranks.Add(rank1);

 

    Int32 rank2 = new Int32();

    ranks.Add(rank2);

 

    //Now attach the list to the request

    req.setRanks(ranks);

 

    //Add PayRanks

    ArrayOfSystem.Int32 payranks = new ArrayOfSystem.Int32();

 

    Int32 payRank1 = new Int32();

    payranks.Add(payRank1);

 

    Int32 payRank2 = new Int32();

    payranks.Add(payRank2);

 

    //Now attach the list to the request

    req.setPayRanks(payranks);

 

    //Add VolumeFilters

    ArrayOfVolumeFilter volumefilters = new ArrayOfVolumeFilter();

 

    VolumeFilter volumeFilter1 = new VolumeFilter();

    volumeFilter1.setVolumeID(1);

    volumeFilter1.setCompare(1);

    volumeFilter1.setValue(1);

    volumefilters.Add(volumeFilter1);

 

    VolumeFilter volumeFilter2 = new VolumeFilter();

    volumeFilter2.setVolumeID(2);

    volumeFilter2.setCompare(2);

    volumeFilter2.setValue(2);

    volumefilters.Add(volumeFilter2);

 

    //Now attach the list to the request

    req.setVolumeFilters(volumefilters);

 

    //Add CustomerStatusTypes

    ArrayOfSystem.Int32 customerstatustypes = new ArrayOfSystem.Int32();

 

    Int32 customerStatusType1 = new Int32();

    customerstatustypes.Add(customerStatusType1);

 

    Int32 customerStatusType2 = new Int32();

    customerstatustypes.Add(customerStatusType2);

 

    //Now attach the list to the request

    req.setCustomerStatusTypes(customerstatustypes);

 

    //Send Request to Server and Get Response

    GetDownlineResponse res = api.getExigoApiSoap().getDownline(req, auth);

 

    //Now examine the results:

}

catch (Exception ex)

{

    System.out.println("Error: " + ex.getMessage());

}

CSV

This method supports CSV output.

HTTP Get Request:
http://api.exigo.com/3.0/csv/?method=GetDownline
&ApiLoginName=String
&ApiPassword=String
&ApiCompany=String
&SortByLevel=Boolean
&BatchOffset=Int32
&TreeType=TreeType
&CustomerID=Int32
&PeriodType=Int32
&PeriodID=Nullable`1
&MaxLevelDepth=Int32
&CustomerTypes=Int32[]
&Ranks=Int32[]
&PayRanks=Int32[]
&VolumeFilters=VolumeFilter[]
&CustomerStatusTypes=Int32[]
&BatchSize=Nullable`1

Response Fields
CustomerID,NodeID,ParentID,Level,Position,CustomerType,CustomerStatus,RankID,PayRankID,FirstName,LastName,Company,Email,Phone,CreatedDate,Volume1,Volume2,Volume3,Volume4,Volume5,Volume6,Volume7,Volume8,Volume9,Volume10,Volume11,Volume12,Volume13,Volume14,Volume15,Volume16,Volume17,Volume18,Volume19,Volume20,Volume21,Volume22,Volume23,Volume24,Volume25,Volume26,Volume27,Volume28,Volume29,Volume30,Volume31,Volume32,Volume33,Volume34,Volume35,Volume36,Volume37,Volume38,Volume39,Volume40,Volume41,Volume42,Volume43,Volume44,Volume45,Volume46,Volume47,Volume48,Volume49,Volume50,Volume51,Volume52,Volume53,Volume54,Volume55,Volume56,Volume57,Volume58,Volume59,Volume60,Volume61,Volume62,Volume63,Volume64,Volume65,Volume66,Volume67,Volume68,Volume69,Volume70,Volume71,Volume72,Volume73,Volume74,Volume75,Volume76,Volume77,Volume78,Volume79,Volume80,Volume81,Volume82,Volume83,Volume84,Volume85,Volume86,Volume87,Volume88,Volume89,Volume90,Volume91,Volume92,Volume93,Volume94,Volume95,Volume96,Volume97,Volume98,Volume99,Volume100,Volume101,Volume102,Volume103,Volume104,Volume105,Volume106,Volume107,Volume108,Volume109,Volume110,Volume111,Volume112,Volume113,Volume114,Volume115,Volume116,Volume117,Volume118,Volume119,Volume120,Volume121,Volume122,Volume123,Volume124,Volume125,Volume126,Volume127,Volume128,Volume129,Volume130,Volume131,Volume132,Volume133,Volume134,Volume135,Volume136,Volume137,Volume138,Volume139,Volume140,Volume141,Volume142,Volume143,Volume144,Volume145,Volume146,Volume147,Volume148,Volume149,Volume150,Volume151,Volume152,Volume153,Volume154,Volume155,Volume156,Volume157,Volume158,Volume159,Volume160,Volume161,Volume162,Volume163,Volume164,Volume165,Volume166,Volume167,Volume168,Volume169,Volume170,Volume171,Volume172,Volume173,Volume174,Volume175,Volume176,Volume177,Volume178,Volume179,Volume180,Volume181,Volume182,Volume183,Volume184,Volume185,Volume186,Volume187,Volume188,Volume189,Volume190,Volume191,Volume192,Volume193,Volume194,Volume195,Volume196,Volume197,Volume198,Volume199,Volume200,RecordCount
Int32,Int32,Int32,Int32,Int32,Int32,Int32,Int32,Int32,String,String,String,String,String,DateTime,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Decimal,Int32