Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LocalSocial ls = LocalSocialFactory.getLocalSocial();
- AccessToken token;
- try {
- token = ls.getAccessToken();
- String path = new StringBuffer(Server.API_VERSION_PATH).append("/networks/").append(m_network).toString();
- Response response = token.post(path);
- if (response.getStatus() == 302) {
- String location = response.getLocation();
- loadWebPage(location);
- }
- } catch (LocalSocialError lsr) {
- lsr.printStackTrace();
- } catch (UnauthorizedException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment