p("got the access token: " + accessToken);
storeAccessToken(twitter.verifyCredentials().getId() , accessToken);
AccessToken toke = new AccessToken(accessToken.getToken(), accessToken.getTokenSecret());
twitter.setOAuthAccessToken(accessToken);
Status status = twitter.updateStatus("quick test of twitter with oauth. hope this works! :)");
p("changed the status to : " + status.getText());
}
private static void storeAccessToken(int useId, AccessToken accessToken){
p("id = " + useId);