Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 733 Bytes

File metadata and controls

17 lines (14 loc) · 733 Bytes

HttpClient

You can use this project to call any OAuth enabled API seamlessly.

For Any OAuth Enabled REST services you can use this project to get active token in just a matter of few steps.

  1. download Jar

  2. import it in your classpath

  3. use below code to get the active token for your specified OAuth Enabled REST Token API

    String certificatePath = "C:/Data/certificate.p12"; String certificatePwd = "xxxxxx"; String tokenUrl = ""; String consumerKey = ""; String consumerSecret = "";

     TokenGenerator token = new TokenGenerator(certificatePath, certificatePwd, tokenUrl, consumerKey, consumerSecret);		
     // Now Here is you Active token
     token.getActiveToken();