Package org.scribe.model

Examples of org.scribe.model.OAuthRequest


    // Trade the Request Token and Verfier for the Access Token
    Token accessToken = service.getAccessToken(requestToken, verifier);

    // Now let's go and ask for a protected resource!
    OAuthRequest request = new OAuthRequest(Verb.GET,
        Constants.PROTECTED_RESOURCE_URL_GOOGLE);
    service.signRequest(accessToken, request);
    request.addHeader("GData-Version", "3.0");
    Response response = request.send();

    readDataProfile(response.getBody());
  }
View Full Code Here


    // Trade the Request Token and Verfier for the Access Token
    Token accessToken = service.getAccessToken(Constants.EMPTY_TOKEN,
        verifier);

    // Now let's go and ask for a protected resource!
    OAuthRequest request = new OAuthRequest(Verb.GET,
        Constants.PROTECTED_RESOURCE_URL_FACEBOOK);
    service.signRequest(accessToken, request);
    Response response = request.send();
    readDataProfile(StringEscapeUtils.unescapeJava(response.getBody()));
  }
View Full Code Here

TOP

Related Classes of org.scribe.model.OAuthRequest

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.