Code Monkey home page Code Monkey logo

Comments (8)

davsclaus avatar davsclaus commented on May 24, 2024

You may try to find the twitter id of that last tweet and set a sinceId=xxx so it will only poll tweets since a certain starting point, eg so it wont find tweet from February etc. eg see that sinceId option and other options at:

https://github.com/apache/camel/blob/master/components/camel-twitter/src/main/docs/twitter-component.adoc

The Camel component gives you the data how twitter gives it to us. We can maybe add a sorting later in the component. However I am busy this weekend away from home and wont have so much time. However on monday I should get some time in the airport.

from connectors.

davsclaus avatar davsclaus commented on May 24, 2024

Here is a PR that adds the sinceId option. Then for your demo you need to set it to a value that is > since those old test tweets.

from connectors.

davsclaus avatar davsclaus commented on May 24, 2024

You can get the tweet id,

from twitter
.log("The tweet id is: ${body.id}")

Or you can maybe find it from twitter app or something.

The Status object class has the following details

public interface Status extends Comparable<Status>, TwitterResponse, EntitySupport, Serializable {
    Date getCreatedAt();

    long getId();

    String getText();

    int getDisplayTextRangeStart();

    int getDisplayTextRangeEnd();

    String getSource();

    boolean isTruncated();

    long getInReplyToStatusId();

    long getInReplyToUserId();

    String getInReplyToScreenName();

    GeoLocation getGeoLocation();

    Place getPlace();

    boolean isFavorited();

    boolean isRetweeted();

    int getFavoriteCount();

    User getUser();

    boolean isRetweet();

    Status getRetweetedStatus();

    long[] getContributors();

    int getRetweetCount();

    boolean isRetweetedByMe();

    long getCurrentUserRetweetId();

    boolean isPossiblySensitive();

    String getLang();

    Scopes getScopes();

    String[] getWithheldInCountries();

    long getQuotedStatusId();

    Status getQuotedStatus();
}

from connectors.

davsclaus avatar davsclaus commented on May 24, 2024

I logged a Camel ticket: https://issues.apache.org/jira/browse/CAMEL-11220

from connectors.

lburgazzoli avatar lburgazzoli commented on May 24, 2024

@rhuss @chirino should we close this as it has been fixed upstream (camel 2.20) ?

from connectors.

jimmidyson avatar jimmidyson commented on May 24, 2024

@lburgazzoli Not until we've upgraded that dependency in syndesis please.

from connectors.

lburgazzoli avatar lburgazzoli commented on May 24, 2024

Now everything should be on camel 2.20, should we close this ?

from connectors.

chirino avatar chirino commented on May 24, 2024

from connectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.