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
.then(data => console.log(data.items)) // logs array of event objects
907
+
mg.events.get('foobar.example.com', {
908
+
page: 'mypageid',
909
+
event: 'opened'
910
+
}).then(data => console.log(data.items)) // logs array of event objects
908
911
.catch(err => console.error(err)); // logs any error
909
912
```
910
913
@@ -918,8 +921,17 @@ Method naming conventions:
918
921
| end | The end of the search time range. It can be specified as a string (see Date Format) or linux epoch seconds. Refer to Time Rangefor details. |
919
922
| ascending | Defines the direction of the search time range if the range end time is not specified. Can be either yes or no. Refer to Time Rangefor details. |
920
923
| limit |Numberof entries to return. (300 max) |
921
-
|<field>|<field> is the name of the Filter Field. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined withAND operator. |
922
-
924
+
|**field**|**field** is the name of the *[Filter Field](https://documentation.mailgun.com/en/latest/api-events.html#filter-field)*. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined with AND operator. |
925
+
- #### Example withDate and *Filter field*
926
+
```js
927
+
const date = new Date(2023, 7, 2, 0, 0, 0, 0); // Wed Aug 02 2023 00:00:00 GMT+0300
.then(data => console.log(data.items)) // logs array of event objects
907
+
mg.events.get('foobar.example.com', {
908
+
page: 'mypageid',
909
+
event: 'opened'
910
+
}).then(data => console.log(data.items)) // logs array of event objects
908
911
.catch(err => console.error(err)); // logs any error
909
912
```
910
913
@@ -918,8 +921,17 @@ Method naming conventions:
918
921
| end | The end of the search time range. It can be specified as a string (see Date Format) or linux epoch seconds. Refer to Time Rangefor details. |
919
922
| ascending | Defines the direction of the search time range if the range end time is not specified. Can be either yes or no. Refer to Time Rangefor details. |
920
923
| limit |Numberof entries to return. (300 max) |
921
-
|<field>|<field> is the name of the Filter Field. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined withAND operator. |
922
-
924
+
|**field**|**field** is the name of the *[Filter Field](https://documentation.mailgun.com/en/latest/api-events.html#filter-field)*. The value of the parameter should be a valid Filter Expression. Several field filters can be specified in one request. If the same field is mentioned, more then once, then all its filter expressions are combined with AND operator. |
925
+
- #### Example withDate and *Filter field*
926
+
```js
927
+
const date = new Date(2023, 7, 2, 0, 0, 0, 0); // Wed Aug 02 2023 00:00:00 GMT+0300
0 commit comments