Skip to content

Releases: zauberlabs/gnip4j

2.2.1

13 Feb 13:52
5c1698c
Compare
Choose a tag to compare
  • #67 Add support for delete favorite and user withheld (dennislloydjr)

2.2.0

24 Nov 16:30
455cfa4
Compare
Choose a tag to compare
  • 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

18 Oct 00:26
1627cfc
Compare
Choose a tag to compare
  • 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

12 Oct 18:04
d4da272
Compare
Choose a tag to compare

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();