def get_collection(self, event_collection):
        """
        Extracts info about a collection using the Keen IO API. A master key must be set first.

        :param event_collection: the name of the collection to retrieve info for
        """

        url = "{0}/{1}/projects/{2}/events/{3}".format(self.base_url, self.api_version,
                                                       self.project_id, event_collection)
        headers = utilities.headers(self.read_key)
        response = self.fulfill(HTTPMethods.GET, url, headers=headers, timeout=self.get_timeout)
        self._error_handling(response)

        return response.json()
def get_collection ( self , event_collection ) : url = "{0}/{1}/projects/{2}/events/{3}" . format ( self . base_url , self . api_version , self . project_id , event_collection ) headers = utilities . headers ( self . read_key ) response = self . fulfill ( HTTPMethods . GET , url , headers = headers , timeout = self . get_timeout ) self . _error_handling ( response ) return response . json ( )
Extracts info about a collection using the Keen IO API. A master key must be set first.

        :param event_collection: the name of the collection to retrieve info for