__init__.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:mixpanel_api 作者: mixpanel 项目源码 文件源码
def query_jql(self, script, params=None):
        """Query the Mixpanel JQL API

        https://mixpanel.com/help/reference/jql/api-reference#api/access

        :param script: String containing a JQL script to run
        :param params: Optional dict that will be made available to the script as the params global variable.
        :type script: str
        :type params: dict

        """
        query_params = {"script": script}
        if params is not None:
            query_params["params"] = json.dumps(params)

        response = self.request(Mixpanel.FORMATTED_API, ['jql'], query_params, method='POST')
        return json.loads(response)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号