Search for contacts by phone number - microsoft-graph-api

Is there currently a way to query the Microsoft Graph for contacts by phone number. I see that it is possible to filter contacts by the 'mobilePhone' field, but not by 'businessPhones' or 'homePhones' fields. Any way to search in all those fields at once? That would be handy!

It doesn't look like there's a way to do this currently. It doesn't look like filtering is supported on those collections. We'll need to go back and see whether we can add filtering support for these attributes.

Related

Proper way to search for contacts Swift 5

I'm making an Apple Messages app clone and am currently mimicking "New Message" design. I have a UITableView (to display the results) with a UISearchController (to search for contacts).
I'm trying to find the best way to search through a user's contacts on their phone while their typing.
The function CNContact.predicateForContacts allows me to search for contacts by either a name, phone number, or email address. But, I'm unsure if this is an efficient method because the search needs to be like the Messages app; where a user starts typing typing it searches for multiple matching fields and displays those results almost instantly. For example, if a user types in a letter, it will search for matching names and email addresses or if they type in a number it will search for matching names, phone numbers, and emails with.
What is the best practice to do this?? I looked at everywhere and even watch Apple's WWDC 15 video on contacts to find the best way for this but have not found a concrete explanation / answer.

How do I search tweets of a given multiple users based on certain criteria using twitter api?

I have list of users
['foo','bar']
I want to search whether they have checked in somewhere or not (using 4sq api)..
So basically, all I am looking for is that whether their tweets contain "\4sq.com\" or not?
I get very confused looking into their api?
Bonus points if the steps can be implemented in python.
Thanks
You have two options for checking a user's tweets:
One option is to look through the tweets in their User Timeline (accessible in Tweepy through api.user_timeline). However, you may have to search through a lot of unrelated Tweets before you come across the one your looking for. Given how many tweets some users have, you might want to only look thorough tweets more recent than a certain date (you can look at the created_at attribute of returned tweets).
The other option is to use the Search API (accessible in Tweepy though 'api.search'). This has the advantage of allowing you specify a search query, giving you relevant tweets. However, you will need to search through the tweets until you find one by the user you're looking for. Again, you might want to limit the date range of tweets that you search through.

Combine Multiple Twitter Timelines Into Single Display - Dynamically

Is there a way you can dynamically combine multiple Twitter timelines into a single display? For example, I want to allow a user to set a preference for which timelines they want to be displayed, and then have the results displayed in a single table.
I have seen the posts regarding creating a list as a way to combine multiple twitter timelines into one request, and displaying that. But this is me predefining which timelines the user gets, and they display all or nothing.
I'd like each user to be able to pick between TimelineA, TimelineB, TimelineC. And then the table dynamically update to display only those chosen. I was hoping there was a means to manipulate the GET statuses/user_timeline parameter so that it would return results from multiple screen_name. But, I've not been able to sort it out.
I'm targeting iOS 6, using Twitter 1.1 API, and currently have a single timeline displaying successfully in a table, thanks to the Techotopia tutorial.
Thanks for any suggestions.
You can create an array containing the tweets from all the timelines sorted by a date parameter like created_at. You can sort this array using something like:
How to sort an NSMutableArray with custom objects in it?
This array would be your data source for a UITableView.

ios google api issue

I need to add a very common Google functionality to an iPhone app I am developing. The idea is that the user is presented with a TextBox where he can write an address (i.e.: "Amsterdam av)". The thing is that I want to add some "help" for him, se when he writes a street name, the app will show him a list of partial matches, like google Maps does here:
sample http://www.timotteo.com.ar/google.png
I canĀ“t find the exact class in the google API. It doesn't need to be as fast as google's own search, maybe the user can write "amst" and press a search button, to be presented with a list of partial matches. The API I'm looking for show return in some way a list with posibilities. All I could find for now where method that gives you the lat/long when you feed it with a specific address. Does somebody know what combination of methods/classes I should use? Maybe some example?
Txs in advance!
Perhaps you are looking for the autocomplete feature of the Places API:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
This won't autocomplete for all addresses or streets, but rather for businesses, notable landmarks, etc.
If you want autocomplete for street addresses, I do not believe that is available through any documented APIs. That doesn't mean workarounds don't exist, but they may depend on more details about your use case. (For example, if you only care about a narrow geographic area, it may be possible to simply have a list of all the streets in your own database and handle the AJAX call yourself.)
Actully what I was looking for is this:
http://maps.google.com/maps/geo?q=amsterdam%201543&output=xml&oe=utf8&sensor=true&hl=es&gl=ar
That URL returns and XML with all the autocomplete options. All I have to do is parse that XML and voila! There I have my list.

Twitter search for anything from a certain source

The Twitter-search features the possibility to search for a source of tweet by using the parameter "source:" (e.g. source:tweetdeck).
If I just search for that it complains about a missing query, but I actually want to search for any tweets from a certain source.
Is that possible?
You need to have some form of criteria, even if it's just 'recent tweets'. To query every single tweet is, I suspect, not possible at all and certainly not within the capabilities of the API.
Note: My mistake - was thinking of one of the REST APIs.

Resources