From 2393a13957f653a8ad08800f138013cc0fd157bf Mon Sep 17 00:00:00 2001 From: Keyur Date: Mon, 17 Jun 2019 13:32:57 -0700 Subject: [PATCH] Update: moesifpythonrequest dependency to 0.1.9 Update: moesifpythonrequest dependency to 0.1.9 Update: README.md (Based on PR #26 comments) --- README.md | 5 ++++- requirements.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8078f95..7552d37 100755 --- a/README.md +++ b/README.md @@ -134,6 +134,9 @@ and returns true if you want to skip this particular event. (optional, but highly recommended) _(req, res) => string_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a string that is the user id used by your system. While Moesif tries to identify users automatically, but different frameworks and your implementation might be very different, it would be helpful and much more accurate to provide this function. +##### __`IDENTIFY_COMPANY_OUTGOING`__ +(optional) _(req, res) => string_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a string that is the company id for this event. + ##### __`GET_METADATA_OUTGOING`__ (optional) _(req, res) => dictionary_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a dictionary (must be able to be encoded into JSON). This allows @@ -152,7 +155,7 @@ def identifyUser(req, res): def identifyCompany(req, res): # return the company id here - return "company_id_1" + return "12345" def should_skip(req, res): if "healthprobe" in req.path: diff --git a/requirements.txt b/requirements.txt index 1251040..987a1da 100755 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ nose==1.3.7 isodatetimehandler==1.0.2 moesifapi==1.2.5 celery==4.1.0 -moesifpythonrequest==0.1.8 +moesifpythonrequest==0.1.9