The Gnip API provides notification of activities (events) occurring in a variety of services and, whenever possible, a guid that identifies the activity itself vis a vis the service it was created on. Activity examples include a user "tweet" (twitter), a user "dugg" (digg), a user creating a blog post, etc.
There are two primary roles that API users fall into; Publishers and Subscribers. You may be one, the other, or both depending on your situation. Publishers push data into the system and subscribers consume data from the system.
Gnip also provides access to Twitter firehoses for non-display purposes, sometimes with a fee.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The Gnip Engagement Ruby Sample Code by Gnip demonstrates API access. It allows retrieving organic engagement metrics, reporting impressions from social Twitter metadata. User-story and API endpoints are available as resources.