Package org.jinstagram.realtime.SubscriptionUtil

Examples of org.jinstagram.realtime.SubscriptionUtil.VerificationResult


  public void shouldReturnSameResultWithPhytonImplementation() throws InstagramException{
    String clientSecret = "5f395ee5acae448bbbcf01a251c480f6";
    String jsonResponse = "[{\"subscription_id\":\"1\",\"object\":\"user\",\"object_id\":\"1234\",\"changed_aspect\":\"media\",\"time\":1297286541},{\"subscription_id\":\"2\",\"object\":\"tag\",\"object_id\":\"nofilter\",\"changed_aspect\":\"media\",\"time\":1297286541}]";
    String xHubSignature = "53a41d80a55a9265fc72633d432e22e6dc05fd64";
   
    VerificationResult result = SubscriptionUtil.verifySubscriptionPostRequestSignature(clientSecret,
              jsonResponse.getBytes(Charset.forName("UTF-8")), xHubSignature);
    Assert.assertTrue(result.isSuccess());
  }
View Full Code Here

TOP

Related Classes of org.jinstagram.realtime.SubscriptionUtil.VerificationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.