queryAPI function

Send a query to SauceLabs.