Releases: zauberlabs/gnip4j
Releases · zauberlabs/gnip4j
2.2.1
2.2.0
- remove PowertrackV1 support
Can trigger compiling issues, but on December 1st 2016 the service won't
be available any more. - #64: Rule is now exposing the new id property
- Rule validation endpoint available (Fredrik Olsson)
- Activity Model allow for deserialization of information about expanded URLs
(Fredrik Olsson) - http-client maven module was removed (it was incomplete since December 2012)
- Dependencies upgraded (Thanks Jamie Magee)
- mockito from 2.0.2-beta to 2.2.5
- netty (for mock server) upgraded from 3.2.6 to 3.10.6
2.1.0
- bugfix: avoid using default charset and user locale
- feature: Compliance Firehose 2.0 by Dennis Lloyd Jr
final AtomicInteger counter = new AtomicInteger();
final DefaultGnipFacade x = DefaultGnipFacade.createPowertrackV2Compliance(
authentication, 1);
final GnipStream stream = x.createPowertrackStream(String.class)
.withAccount("foo")
.withType("prod")
.withUnmarshall(new ComplianceActivityUnmarshaller())
.withObserver(new StreamNotificationAdapter<Activity>() {
@Override
public void notify(final Activity activity, final GnipStream stream) {
System.out.println(activity);
if (counter.incrementAndGet() >= 10) {
stream.close();
}
}
})
.build();
stream.await();
2.0.0
Depending of the features used, this release might not be binary compatible
with previous releases. Recompilation of the client apps is adviced.
- More entities in the Activity model implements Serializable
- Activity model expanded to support more twitter features (140plus
characters, places, expanded_status, etc) - Consumers are able to process raw strings (usefull for native format)
- Dependencies updated (junit, mockito, slf4, joda-time...)
- Java 8 is required
- Powertrack 2 support
- removed Mule support
- Ease Facade creation for Powertrack V1/V2
Example of consuming a V2 Raw stream:
final DefaultGnipFacade x = DefaultGnipFacade.createPowertrackV2(…);
final GnipStream stream = x.createPowertrackStream(String.class)
.withAccount("…")
.withType("dev")
.withUnmarshall(new StringUnmarshaller())
.withObserver(new StreamNotificationAdapter<String>() {
@Override
public void notify(final String activity, final GnipStream stream) {
System.out.println(activity);
}
})
.build();
stream.await();