Is there a wildcard character for the Mixpanel API "export" method "event" parameter? - mixpanel

According to Mixpanel's API documentation here:
https://mixpanel.com/docs/api-documentation/exporting-raw-data-you-inserted-into-mixpanel
Method: export
URI: https://data.mixpanel.com/api/2.0/export/
Please note: The URI is data.mixpanel.com and not just mixpanel.com
Description
Get a "raw dump" of tracked events over a time period.
Parameters
...
optional event array
The event or events that you wish to get data for, encoded as a JSON array.
Example format: '["play song", "log in", "add playlist"]'
An expression to filter events by. See the expression section on the main data export API page.
...
If I wanted to fetch all events rather than a list of specific events, is there a wildcard syntax that I can use?

Mixpanel support answered my question, if you omit the "events" parameter it will return all types of events:
eg: API call, notice there is no event parameter included
https://data.mixpanel.com/api/2.0/export/?from_date=2012-02-14&expire=1329760783&sig=bbe4be1e144d6d6376ef5484745aac45
&to_date=2012-02-14&api_key=f0aa346688cee071cd85d857285a3464&
where=properties%5B%22%24os%22%5D+%3D%3D+%22Linux%22
Events of all types will be returned since no "event" filter is specified.

Related

Saving user utterance in a parameter during no match intent on start page

I am trying to implement a search functionality using webhook. I want to save user utterance in a parameter in case user query does not match any intent on start page.
Is there any way to save user utterances in parameter so that it can be used by webhook . Currently no match intent is invoked correctly but utterance does not go to webhook.
You should be able to extract the original user query and pass it as a parameter to your CX agents using webhook.
To do so, you should enable the “Use Webhook” option on the specific route where you want the user query to be extracted. When that route is triggered, you should be able to extract the original user query in your Webhook Request’s query union field. Here are the four possible Webhook Request fields where you can extract the relevant data based on the input type that the user provided:
“text” field - if natural language text was provided as input.
“transcript” field - if natural language speech audio was provided as input.
“trigger_event” field - if an event was provided as input.
“trigger_intent” field - if an intent was provided as input.
The user query that you extracted can then be passed as a parameter to your CX agent by adding it to your WebhookResponse body inside either of the following field:
WebhookResponse.page_info.form_info.parameter_info[]
WebhookResponse.session_info.parameters
Here’s an example webhook response containing a session parameter:
jsonResponse = {
"session_info":
{
"parameters":
{
"parameter_name": "parameter value"
}
}
};
What you can do:
Create an intent (e.g. 'NoMatchUtterance')
Fully label any training frases (this could just be some random phrases) for this intent with the parameter-id no-match-utterance (or something else) of type #sys.any. This will make sure that any reply is caught.
Create a route with this intent, below routes that match any other, preset intents. In the fulfillment of this route, you can now use $session.params.no-match-utterance.
An example from my projects:

How to search a calendar event va Microsoft Graph API?

I cannot find a way to look for a calendar event matching a given text (my own application-specific ID, that I would like to store in the calendar event body for instance):
the search/query API is not supported for personal accounts (see https://stackoverflow.a/questions/66198537/authenticationerror-with-microsoft-graph-search-query-with-some-accounts-but-c)
the me/calendar/events API does not support $search
the me/calendarview API ignores the $search parameter : it silently returns the same big event list regardless of the criteria specified in $search. I could loop on all the event list for the one matching my criteria, but this is suboptimal and might lead to a huge traffic over the network, as I would have to first retrieve the full list of the users' event to loop on it!
Would you have any suggestion to query an event containing a given text? Or any other alternative approach?
Many thanks!

AWS WebSocket API Gateway Template Selection Expressions examples

AWS API Gateway service page says that a Template Selection Expression can be used to implement a way to transform the request body. However the documentation for these selection expressions is very light and I haven't been able to find any examples.
Where can I find examples of what these expressions look like?
Where can I find what variables and options are available in these expressions?
To add content to the integration request, you'll need to use a Request Template. The Request Template is the piece that actually generates the new request body, while the Request Selection Template is used in the process of determining which Request Template to use.
Turn off HTTP Proxy Integration for your route. (You can't modify the request otherwise.)
Save your changes. (the Request Templates section won't appear until you do so.)
Set your Template Selection Expression. This is used to look up a value from the incoming request object. (If you want to match all incoming requests, enter \$default. Note the slash. Full documentation here.)
Set your Template Key. This is compared against the value selected by the Template Selection Expression. If it's a match, the template is used. (If you want to match all incoming requests, enter $default. Note the absence of a slash.)
Click your Template Key to open the template editor. This is where you enter your template that will be sent to your integration endpoint as the body of the request. For example, if you want to forward the connection ID and the incoming query parameters to the integration endpoint, you can use the following:
{
"myConnectionIdProperty": "$context.connectionId",
"myQueryParams": $input.params()
}
Documentation for variables available to you in the template expression can be found here.
(Note that while $request is a valid variable in the Template Selection Expression, it is not a valid variable in the template itself. Use $input instead there.)
Basically Template Selection Expression works same as Route Selection Expression. All examples for Route Selection Expression will work.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-route-selection-expressions
In addition to it, TemplateSelectionExpression for integration response supports few more variables:
$integration.response.statuscode
$integration.response.header.headerName
$integration.response.multivalueheader.headerName

Search events by extended properties in Google Calendar API with emulating "OR" statement

I am trying to search my Google events by "sharedExtendedProperty" values.
The doc for it is here.
I have a few props attached to some of my events.
e.g.
account: 123456
note: 654321
I can easily search by one of the property as well as by both properties.
However, I can't find a way to search for this event with OR statement.
Is there a way I say that event that I search should contain either:
account: 123456
Or:
note: 654321
There is no info about it in the documentation.
If I search by both, then it searches for the full much and I don't need it.

Event Parameters List

I am trying to understand what exactly is stored in an event using the SAPUI5 documentation here. Where can I find a list of parameters that come with an Event? For example, I just found out that DatePicker has a parameter called "valid", but how would I know that? Surely I wouldn't have to use getParameters() for every entity right? Also when you define a function to be called in XML, do they all send the same Event type?
In general the parameters depend on the intention of the event, e.g. a change event which indicates that the source object has changed its value contains other parameters than an event which informs you that a file upload has failed.
You'll find the available event parameters in API documentation. To stick with your example: Check the API documentation of the DatePicker control, select the change event from the available events and check the available parameter. You will find the parameter valid with a description. To see the difference between the events you may also check the ListBase implementation, which defines a bunch of events.
It is good style to use getParameter in your event handler to access the parameters values.
onDatePickerChanged : function(event) {
let validDate = event.getParameter("valid");
}

Resources