#! /usr/bin/env python2.7

import modules.apis.api_base as api

class SplitsIOAPI(api.API):

    def __init__(self, session = None):
        super(SplitsIOAPI, self).__init__("https://splits.io/api/v3", session)

    def get_user_splits(self, user, **kwargs):
        endpoint = "/users/{0}/pbs".format(user)
        success, response = self.get(endpoint, **kwargs)
        return success, response

add splits-io api wrapper