Class AbstractBricksetService

    • Constructor Detail

      • AbstractBricksetService

        protected AbstractBricksetService​(String apiKey)
        Constructor.
        Parameters:
        apiKey - your Rebrickable private key.
    • Method Detail

      • returnJsonResponse

        protected String returnJsonResponse​(Method method,
                                            String uri)
                                     throws BricksetException
        Call the service and return the response.
        Parameters:
        method - http methode
        uri - uri
        Returns:
        the string representation of the JSON response
        Throws:
        BricksetException - if status is not success
      • returnJsonResponse

        protected String returnJsonResponse​(Method method,
                                            String uri,
                                            Map<String,​String> parameters,
                                            String userHash)
                                     throws BricksetException
        Call the service and return the response.
        Parameters:
        method - http methode
        uri - uri
        parameters - request parameters
        userHash - user hash
        Returns:
        the string representation of the JSON response
        Throws:
        BricksetException - if status is not success