Rough implementation of the rest-search; oauth ionly taken from file