View on GitHub

havefunhub

core APIs

Sign UP

To start managing your Events, Places, Voucher and Tickets you need to Create an account

Then Login to Console to generate a token to use in your requests when needed.

Rest API

Check our API explorer for the available end points. You can consume services from your any client.

$.ajax({
  url: 'https://havefunhub.com/api/events/query',
  dataType: "json",
  ...
  success: function (data) {
                  //do something with Events' JSON result
           }
})

Java API

Soon. Working on it :)

Requirements

Java 1.7 or later

Installation

Maven users

Add this dependency to your project’s POM:

<dependency>
  <groupId>com.druidalabs</groupId>
  <artifactId>havefunhub-api</artifactId>
  <version>3.0.0</version>
</dependency>

Documentation

Please see the Java API docs for the most up-to-date documentation.

Usage

HaveFunHubExample.java

import java.util.HashMap;
import java.util.Map;

public class HaveFunHubExample {

    public static void main(String[] args) {
        RequestOptions requestOptions = (new RequestOptionsBuilder()).setApiKey("YOUR-SECRET-KEY").build();
        Map<String, Object> eventsMap = new HashMap<String, Object>();
        eventsMap.put("Lat", 34.6037); 
        eventsMap.put("Long", 58.3816);
        eventsMap.put("when", "now");
        try {
            ArrayList<Event> events = Event.query(eventsMap, requestOptions);
            System.out.println(events);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Entities

Events

Places

Promotions

Tickets