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 a premium Gnip stream, using gzip compression
- Rules API - Add, Delete, and List rules on premium and Enterprise Data Collector streams
The snippets are available in the following programming languages:
- C#
- Java
- PHP
- Python
- Ruby
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.).