Correctly performs a search using oauth