Examples of updateStatus()


Examples of org.mokai.persist.mongo.MongoMessageStore.updateStatus()

    createMessageForUpdate(connectionsCol, Message.STATUS_RETRYING);

    MongoMessageStore store = new MongoMessageStore();
    store.setMongo(db);

    store.updateStatus(new MessageCriteria(), Message.STATUS_PROCESSED);

    BasicDBObject obj = (BasicDBObject) applicationsCol.findOne();
    Assert.assertEquals( (byte) obj.getInt("status"), Message.STATUS_PROCESSED);

    obj = (BasicDBObject) connectionsCol.findOne();
View Full Code Here

Examples of org.osforce.spring4me.social.api.service.ApiService.updateStatus()

        ApiService apiService = getApiService(target);
        Map<String, Object> params = CollectionUtil.newHashMap();
        params.put("format", "json");
        params.put("accessToken", accessToken);
        params.put("status", activity.getDescription());
        apiService.updateStatus(params);
      }
    }
  }

  private Token getAccessToken(String target, User user) {
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil.updateStatus()

    // unblock it manually
    // NEXUS-4410: since this issue is implemented, the lines below are not enough,
    // since NFC will still contain the artifact do be downloaded, so we need to make it manually blocked and then allow proxy
    // those steps DOES clean NFC
    status.setProxyMode(ProxyMode.BLOCKED_MANUAL.name());
    util.updateStatus(status);
    status.setProxyMode(ProxyMode.ALLOW.name());
    util.updateStatus(status);

    // and now, all should go well
    downloadArtifact(getNexusTestRepoUrl(),
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

    @Override
    public void updateStatus(String token, String tokenSecret, String message) throws TwitterException {
        AccessToken accessToken = new AccessToken(token, tokenSecret);
        Twitter twitter = new TwitterFactory(conf).getInstance(accessToken);
        twitter.updateStatus(message);
    }
}
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

  @Test
  public void send() throws TwitterException
  {
     // The factory instance is re-useable and thread safe.
      Twitter twitter = new TwitterFactory().getInstance("geodojo","latinoware");
      Status status = twitter.updateStatus("Testando o  twitter4j");
      System.out.println("Successfully updated the status to [" + status.getText() + "].");
  }
}
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

  }
 
  private void updateTwitter() throws TwitterException
  {
      Twitter twitter = new TwitterFactory().getInstance(this.twitt.getAutor(),this.passwd);
      twitter.updateStatus(this.twitt.getMensagem(),new GeoLocation(this.twitt.getLocation().getY(),this.twitt.getLocation().getX()));   
  }
 
  private void persistGeoTwitt()
  {
    this.em.getTransaction().begin();
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

        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);
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

            String msg = b.toString();
            if (msg.length() > 140)
                msg = msg.substring(0, 140);

            Status status = twitter.updateStatus(msg);

            result = SenderResult.getSimpleSuccess("Send notification - msg-id: " + status.getId());
        } catch (TwitterException e) {

            log.warn("Notification via Microblog failed!", e);
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

            }

            String message = configuration.getSimpleValue("message",null);

            Twitter twitter = createTwitterInstance();
            Status status = twitter.updateStatus(message);
            @SuppressWarnings({"UnnecessaryLocalVariable"})
            OperationResult result = new OperationResult("Posted " + status.getText());

            return result;
View Full Code Here

Examples of twitter4j.Twitter.updateStatus()

        //persist to the accessToken for future reference.
        System.out.println(twitter.verifyCredentials().getId());
        System.out.println("token : " + accessToken.getToken());
        System.out.println("tokenSecret : " + accessToken.getTokenSecret());
        //storeAccessToken(twitter.verifyCredentials().getId() , accessToken);
        Status status = twitter.updateStatus(args[0]);
        System.out.println("Successfully updated the status to [" + status.getText() + "].");
        System.exit(0);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.