Sections ▾

Overview

Add event processing and analytical capabilities to your applications with just a few lines of code

ContextHub provides a mechanism for third party developers to quickly and easily add powerful event processing capabilities to their applications with just a few lines of code. This enables developers to create unique and engaging experiences for their users.

Getting Started

Using ContextHub is simple and straightforward:

  1. Sign Up. Create your free account by either creating a username/password at the ContextHub site or using your GitHub credentials. This will give you access to the Developer Portal, where you will be able to create and manage your apps.

  2. Create an App. On ContextHub, you create a separate app for each of your applications (mobile, web or both). Each account on ContextHub can have multiple application ids for multiple apps. This lets you accommodate both testing and production versions of your app with the same account, or different apps altogether.

  3. Create triggers. Once you have created an app, you’ll want to use the Triggers area to create as many web endpoints as you need. Mobile devices, web apps and other servers will post events to these endpoints. Most simple applications use only one trigger.

  4. Send and view your events. A few seconds after posting events to the trigger endpoints, you should see them appear in the Developer Portal. You can view detailed information about the latest events received in the Events area. You can also see basic reports and even extract the full event dataset in the Analytics area.

  5. Add rules. The Contextual Rules Engine allows you to respond to contextual events by triggering custom snippets of JavaScript code. Use the Contexts area in the Developer Portal to create one or more Rules.

  6. View logs. The Logs area in the Developer Portal is useful as it can help you debug your rules and get a better understanding of any errors, webhook calls, etc.