/support

Git Support Utilities

Primary LanguageJavaMIT LicenseMIT

Gnip Support

Example Code Snippets

This repository contains sample code snippets that demonstrate the basic API methods available on Gnip's API. These are broken into two categories:

  • Premium Stream Connection - Establish a streaming connection to Gnip PowerTrack and Firehose streams, using gzip compression
  • Rules API - Add, Delete, and List rules on PowerTrack Streams
  • Search API - Send requests to Gnip's Search API
  • Historical PowerTrack API - Create and monitor Historical PowerTrack jobs.
  • Rehydration API - Send requests to Gnip's Rehydration API.
  • Compliance API - Send requests to Gnip's Compliance API.
  • Data Collector - Connect to the streaming or polling endpoints, or manage rules on a Data Collector stream.

These snippets should serve as an example only for the basic API functions, and do not provide additional functionality that will be crucuial to the success of your application (e.g. reconnect logic, batching rule updates, complying with rate limits, validating rules, retrying failed updates, etc.).