EvioGetUserInfoByMac
Z Net47 2.0
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Priority> <Module>Evio</Module> <Request> <Type>EvioGetUserInfoByMac</Type> <EvioGetUserInfoByMac> <deviceType>1</deviceType><!-- Szukaj w: 1 - stb, 2 - mobile, 3 - all --> <mac>22:33:44:55:66:77</mac> </EvioGetUserInfoByMac> </Request> </Net47> //BEGINEND//
Odpowiedź dla ACTIVE:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>EvioGetUserInfoByMac</Type> <EvioGetUserInfoByMac> <crmCustomerId>2</crmCustomerId> <userInfoStatusCode>OK</userInfoStatusCode><!-- możliwe wartości: OK, UNKNOWN --> <userAccountsInfo> <crmId>55</crmId> <accountStatus>ACTIVE</accountStatus><!-- możliwe wartości: ACTIVE, INACTIVE --> <userPackages> <package><!-- może wystąpić wielokrotnie --> <packageId>2</packageId> <validityEnd> 23:59:59</validityEnd> <drmPackageId>edytowany_1234</drmPackageId> </package> <package> <packageId>45</packageId> <validityEnd>2015-04-30 23:59:59</validityEnd> <drmPackageId>HBO_5633</drmPackageId> </package> </userPackages> <userInfoStbs> <isStb>true</isStb><!-- możliwe wartości: true, false --> <mac>22:33:44:55:66:77</mac> </userInfoStbs> </userAccountsInfo> </EvioGetUserInfoByMac> </Request> </Net47> //BEGINEND//
Odpowiedź dla INACTIVE:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>EvioGetUserInfoByMac</Type> <EvioGetUserInfoByMac> <crmCustomerId>1</crmCustomerId> <userInfoStatusCode>OK</userInfoStatusCode> <userAccountsInfo> <crmId>55</crmId> <accountStatus>INACTIVE</accountStatus> <userInfoStbs> <isStb>true</isStb> <mac>11:22:33:44:55:66</mac> </userInfoStbs> </userAccountsInfo> </EvioGetUserInfoByMac> </Request> </Net47> //BEGINEND//
Odpowiedź dla UNKNOWN:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>EvioGetUserInfoByMac</Type> <EvioGetUserInfoByMac> <userInfoStatusCode>UNKNOWN</userInfoStatusCode> </EvioGetUserInfoByMac> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error></Error> </Request> </Net47> //BEGINEND//