You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Moesif Application Id can be found in the [_Moesif Portal_](https://www.moesif.com/).
76
-
After signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps.
76
+
After signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps.
77
77
78
-
You can always find your Moesif Application Id at any time by logging
78
+
You can always find your Moesif Application Id at any time by logging
79
79
into the [_Moesif Portal_](https://www.moesif.com/), click on the top right menu,
80
80
and then clicking _Installation_.
81
81
82
+
### 3. Trigger your API
83
+
84
+
Grab the URL to your API Gateway or LB and make some calls using a tool like Postman or CURL.
85
+
86
+
> In order for your event to log to Moesif, you must test using the Amazon API Gateway trigger. Do not invoke your lambda directly using AWS Console as the payload won't contain a valid HTTP payload.
87
+
88
+
82
89
## Repo file structure
83
90
84
91
-`lib/index.js` the middleware lib
@@ -111,10 +118,10 @@ options.identifyUser = function (event, context) {
111
118
112
119
Type: `(event, context) => String`
113
120
identifyCompany is a function that takes AWS lambda `event` and `context` objects as arguments
114
-
and returns a companyId. If your business is B2B, this enables Moesif to attribute
115
-
API requests to specific companies or organizations so you can understand which accounts are
116
-
calling your API. This can be used simultaneously with `identifyUser` to track both
117
-
individual customers and the companies their a part of.
121
+
and returns a companyId. If your business is B2B, this enables Moesif to attribute
122
+
API requests to specific companies or organizations so you can understand which accounts are
123
+
calling your API. This can be used simultaneously with `identifyUser` to track both
124
+
individual customers and the companies their a part of.
0 commit comments