none
URGENT!!! VerifyEntitlementToken not working! RRS feed

  • Question

  •   I just published my app and every time I call VerifyEntitlementToken with the token request that they send in the et parameter i get an empty result set back....

    Here is my code:

                    VerificationServiceClient service = new VerificationServiceClient();
                    VerifyEntitlementTokenRequest request = new VerifyEntitlementTokenRequest();
                    request.EntitlementToken = etoken;
                    VerifyEntitlementTokenResponse response = service.VerifyEntitlementToken(request);
                    userId = response.UserId;

    etoken is equal to:

    %3Cr%20v%3D%221%22%3E%3Ct%20aid%3D%22xxx%22%20pid%3D%22yyy%22%20cid%3D%22zzz%22%20did%3D%22xxyyzz%22%20ts%3D%220%22%20sl%3D%22true%22%20et%3D%22Trial%22%20ad%3D%222014%2D06%2D19T19%3A59%3A59Z%22%20ed%3D%222014%2D07%2D04T19%3A59%3A59Z%22%20sd%3D%222014%2D06%2D19%22%20te%3D%222014%2D07%2D04T19%3A59%3A59Z%22%20ss%3D%220%22%20%2F%3E%3Cd%3EPwTDQqckMgms7wVVgpm0gaE7iAO74NLdT3S1qUHyRR4%3D%3C%2Fd%3E%3C%2Fr%3E

    Obviously I took out the relevant id's.

    The result is blank!

    Thursday, June 19, 2014 8:15 PM

Answers

  • Ok, panic city, but in a mail app the 'et' is URLEncoded as viewed above.  The samples, of course do not say to URLDecode, but when I did and sent the string over then all worked fine.  Perhaps an obvious next step, but a critical omission.
    Thursday, June 19, 2014 8:31 PM