Comments (8)
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:
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.
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.
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.
I logged a Camel ticket: https://issues.apache.org/jira/browse/CAMEL-11220
from connectors.
@rhuss @chirino should we close this as it has been fixed upstream (camel 2.20) ?
from connectors.
@lburgazzoli Not until we've upgraded that dependency in syndesis please.
from connectors.
Now everything should be on camel 2.20, should we close this ?
from connectors.
from connectors.
Related Issues (20)
- Create an AWS S3 Get Object connector HOT 2
- Create an AWS S3 Poll Bucket Connector HOT 4
- Add null checks to Salesforce connectors
- Improve packaging and building
- AWS S3 delete object connector
- Support Human friendly syntax in Timer
- Support JSON based models in salesforce connector HOT 2
- salesforce connector not working HOT 1
- Unrecognized field "optionalPrefix" HOT 3
- Upgrade Camel Version to pull in Extensions HOT 7
- Pull some build sections in parent pom if possible
- Add DTOs to Salesforce json connectors that expect a simple ID input body HOT 1
- Refactor the SQL Stored connector HOT 2
- SQL Stored connector has `${project.version}` in JSON descriptors
- Twitter mention error: "Method with name: null not found" HOT 4
- Build fails if clean is not specified.
- Stub test connectors HOT 1
- Create initial Swagger connector HOT 1
- Create an AWS S3 Copy Object Connector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectors.