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!
Related
Does the custom search API allow for searching for events as you would the events page directly?
For example, this url:
https://www.google.com/search?q=cool+conferences&oq=cool+conferences&ibp=htl;events&rciv=evn#htivrt=events&htidocid=L2F1dGhvcml0eS9ob3Jpem9uL2NsdXN0ZXJlZF9ldmVudC8yMDIwLTA5LTI2fF8xNDQ0MTI3ODg0MDQ1NDM0NjM2Mg%3D%3D&fpstate=tldetail
But within the customsearch/v1 API space.
Not exactly--the customsearch API doesn't support the same specialized search interfaces that google.com does.
You might be able to get close by creating a search engine and adding a Knowledge Graph restrict to search pages on the entity "event" or "conference", or a more specific Knowledge Graph entity if you have one in mind: the more specific the entity, the better the results usually are.
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.
I'm using the Google Places API endpoint "findplacefromtext" and tried a search similar to the example.
https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=mongolian%20grill&inputtype=textquery&fields=photos,formatted_address,name,opening_hours,rating&locationbias=circle:2000#47.6918452,-122.2226413&key=YOUR_API_KEY
However, when you use this it only ever returns one result. There is a cafe near me that's called "Cream" but when you pass that as the "input" parameter it returns shops that have a category of "Ice Cream". I thought it should only search the name of the business.... If I can't find the place by name does it search the category type as a fall back? When I execute the same search in Google Maps it returns the same data but I get multiple results and I can see the place I am trying to retrieve 3rd on the search result list.
Is it possible to make it return more than one result? The documentation doesn't mention anything about this.
I believe what you need is the Text Search request. The Find Place request is meant for exact addresses.
The Google Places API Text Search Service is a web service that
returns information about a set of places based on a string — for
example "pizza in New York" or "shoe stores near Ottawa" or "123 Main
Street". The service responds with a list of places matching the text
string and any location bias that has been set.
The service is especially useful for making ambiguous address queries
in an automated system, and non-address components of the string may
match businesses as well as addresses. Examples of ambiguous address
queries are incomplete addresses, poorly formatted addresses, or a
request that includes non-address components such as business names.
Taken from https://developers.google.com/maps/documentation/places/web-service/search#TextSearchRequests
I can't seem to find any information on the implications of using/not using regionCode in the YouTube v3 API, for example the search/list resource.
In the specific, if the regionCode is not specified in the call to the API, will all the videos matching the criteria be returned?
If a video is allowed only in certain regions, not specifying the regionCode in the search request, will the API return it? Or only the unrestricted videos will be returned?
Where can I find some clarification on the topic?
If you do not specify the Region Code then the API automatically determines the region based on your location. So, for example, if I queried the API on my laptop in New Zealand, then the region code would be NZ.
The API outputs the region code. In JSON it is under the tag regionCode.
Generally Region Code is not required. You will get a good matching results output without it.
The regionCode parameter instructs the API to return search results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. (string)
I store specific custom field for each transaction. I'd like to conduct a search by this field. I wouldn't like to retrieve too many transactions (can filter by payment method id, but still) and iterate through them on application side. So, I read a documentation, didn't find an ability to search by custom field (only by predefined). I didn't try it out, but probably it's possibly to do so by following the same pattern like
var stream = gateway.transaction.search(function (search) {
search.myCustomField().is("custom_field_value");
// or search.customFields.myCustomField().is("custom_field_value");
});
Thanks in advance
I work as a developer for Braintree. Searching on custom fields is not supported at this time. You can see all of the searchable transaction attributes listed here.
If you would like to discuss alternatives, I recommend emailing our support team at support#braintreepayments.com to see if there is another method to achieve what you are trying to do.