Class IgdbWrapper


  • public class IgdbWrapper
    extends Object
    Wrapper for IGDB API
    • Constructor Detail

      • IgdbWrapper

        public IgdbWrapper​(String apiKey,
                           String urlBase)
    • Method Detail

      • sendRequest

        public <T> T sendRequest​(Endpoint endpoint,
                                 Parameters parameters,
                                 org.springframework.http.HttpMethod httpMethod,
                                 Class<T> c)
        general method to send requests
        Parameters:
        endpoint -
        parameters -
        httpMethod -
        c -
        Returns:
        api response
      • sendRequest

        public <T> T sendRequest​(Endpoint endpoint,
                                 Parameters parameters,
                                 Class<T> c)
        general method to send requests
        Type Parameters:
        T -
        Parameters:
        endpoint -
        parameters -
        c -
        Returns:
        api response
      • sendRequest

        public <T> T sendRequest​(Endpoint endpoint,
                                 org.springframework.http.HttpMethod httpMethod,
                                 Class<T> c)
        general method to send requests
        Type Parameters:
        T -
        Parameters:
        endpoint -
        httpMethod -
        c -
        Returns:
        api response
      • sendRequest

        public <T> T sendRequest​(Endpoint endpoint,
                                 Class<T> c)
        general method to send requests
        Type Parameters:
        T -
        Parameters:
        endpoint -
        c -
        Returns:
        api response