GetUpline
Gets nodes in an upline.Input Properties
GetUplineRequest
Output Properties
GetUplineResponse
NodeResponse
Http Request
GET https://yourcompany-api.exigo.com/3.0/commissions/upline?treeType=1 &customerID=1 &periodType=1 &periodID=1 &customerKey=1 &batchOffset=1 Authorization: Basic base64Encoded
Http Response
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length{ "nodes": null, "result": null }
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: lifewave-api.exigo.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://api.exigo.com/GetUpline" <?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> <GetUplineRequest xmlns="http://api.exigo.com/"> <TreeType>Enroller or UniLevel or Binary or Matrix or Stack</TreeType> <CustomerID>int</CustomerID> <PeriodType>int</PeriodType> <PeriodID>int</PeriodID> <CustomerKey>string</CustomerKey> <BatchSize>int</BatchSize> <BatchOffset>int</BatchOffset> </GetUplineRequest> </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> <GetUplineResult 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> <CustomerKey>string</CustomerKey> </NodeResponse> </Nodes> </GetUplineResult> </soap:Body> </soap:Envelope>
C# Rest Client
Install Nuget package Exigo.Api.Client
try
{
//Create Api Client
var api = new ExigoApiClient("yourcmpany", "yourlogin", "yourpassword");
//Create Request
var req = new GetUplineRequest();
req.TreeType = TreeType.Enroller;
req.CustomerID = 1; //Unique numeric identifier for customer record.
req.PeriodType = 1;
req.PeriodID = 1;
req.CustomerKey = "1"; //Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.
req.BatchOffset = 1;
//Send Request to Server and Get Response
var res = await api.GetUplineAsync(req);
//Now examine the results:
foreach (var 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("CustomerKey: {0}", node.CustomerKey);
}
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex.Message);
}
C# Soap Client
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
GetUplineRequest req = new GetUplineRequest();
req.TreeType = TreeType.Enroller;
req.CustomerID = 1; //Unique numeric identifier for customer record.
req.PeriodType = 1;
req.PeriodID = 1;
req.CustomerKey = "1"; //Unique alpha numeric identifier for customer record. Exeption will occur if CustomerID & CustomerKey are provided.
req.BatchOffset = 1;
//Send Request to Server and Get Response
GetUplineResponse res = api.GetUpline(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("CustomerKey: {0}", node.CustomerKey);
}
}
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 GetUplineRequest()
req.TreeType = TreeType.Enroller
req.CustomerID = 1
req.PeriodType = 1
req.PeriodID = 1
req.CustomerKey = "1"
req.BatchOffset = 1
'Send Request to Server and Get Response
Dim res As GetUplineResponse = api.GetUpline(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)
Console.WriteLine("CustomerKey: {0}", node.CustomerKey)
Next
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->TreeType = 1;
$req->CustomerID = 1;
$req->PeriodType = 1;
$req->PeriodID = 1;
$req->CustomerKey = "1";
$req->BatchOffset = 1;
//Send Request to Server and Get Response
$res = $api.GetUpline($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
GetUplineRequest req = new GetUplineRequest();
req.setTreeType(1);
req.setCustomerID(1);
req.setPeriodType(1);
req.setPeriodID(1);
req.setCustomerKey("1");
req.setBatchOffset(1);
//Send Request to Server and Get Response
GetUplineResponse res = api.getExigoApiSoap().getUpline(req, auth);
//Now examine the results:
}
catch (Exception ex)
{
System.out.println("Error: " + ex.getMessage());
}
CSV
HTTP Get Request:
https://lifewave-api.exigo.com/3.0/csv/?method=GetUpline
&ApiLoginName=String
&ApiPassword=String
&ApiCompany=String
&TreeType=TreeType
&CustomerID=Int32
&PeriodType=Int32
&PeriodID=Nullable`1
&CustomerKey=String
&BatchSize=Nullable`1
&BatchOffset=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,CustomerKey
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,String