Optify API Client for Java

July 5, 2012 | by | Category:

Like many other cloud services, Optify provides an application programming interface, or an API, to its customers. The API is a component of our system that enables you to include Optify’s visitor and lead intelligence in your own applications and reports.

To start using the API you will need an access token. To request your access token please send an email to support@optify.net. If you just want to test out our API you may use our demo account token: qbkkw3ir3gtg7bdf4rumb69p.

Optify API Tokens for Java

Optify’s API is exposed over HTTPS and vends XML or JSON. This means that you can use any platform with an HTTP client to access it. The following entities and methods are defined:

Entities:

  • site
  • visitor

Methods:

  • /sites – get all site information
  • /sites/{siteToken} – get site information
  • /sites/{siteToken}/visitors – get all visitor information for a site
  • /sites/{siteToken}/visitors/{visitorId} – get visitor information for a given site

You can try the API out immediately in your browser. For example, visiting https://api.optify.net/v1/sites/EYNN83MD/visitors?access_token=wmjf73ott6f33unj2ztlttor&count=200 will show you up to 200 of your site’s visitors in the last 24 hours.

For detailed information about these entities and methods please visit our API documentation.

In this post we’re happy to announce the availability of an open source Optify API Client for Java. The library allows you to integrate your Java applications with Optify’s API. In order to use the library, first instantiate the client proxy:

<script src=”https://gist.github.com/3006424.js”></script>

You’re all set! Now you can start executing method calls. For example, let’s print a list of our sites:

<script src=”https://gist.github.com/3006473.js”></script>

Perhaps you would like to see which pages your leads have viewed in the last 24 hours:

<script src=”https://gist.github.com/3006499.js”></script>

Start enriching your applications and reports with Optify’s visitor and lead intelligence today!