@@ -0,0 +1,1100 @@
+from libsaas import http, parsers%0Afrom libsaas.services import base%0A%0A%0Aclass Insights(base.HierarchicalResource):%0A%0A    path = 'insights'%0A%0A    @base.apimethod%0A    def meta(self):%0A        %22%22%22%0A        Retrieve Insights meta data for the authenticated site.%0A%0A        Upstream documentation: http://dev.desk.com/API/insights/#meta-show%0A        %22%22%22%0A        url = '%7B0%7D/%7B1%7D'.format(self.get_url(), 'meta')%0A%0A        return http.Request('GET', url), parsers.parse_json%0A%0A    @base.apimethod%0A    def report(self, resolution=None, min_date=None, max_date=None,%0A               dimension1_name=None, dimension1_values=None,%0A               dimension2_name=None, dimension2_values=None, metrics=None,%0A               sort_by=None, sort_order=None, dimension1_per_page=None,%0A               dimension1_page=None):%0A        %22%22%22%0A        Create a report.%0A%0A        Upstream documentation: http://dev.desk.com/API/insights/#report-create%0A        %22%22%22%0A        params = base.get_params(None, locals())%0A        url = '%7B0%7D/%7B1%7D'.format(self.get_url(), 'reports')%0A%0A        return http.Request('POST', url, params), parsers.parse_json%0A

add insights endpoint resource