script to auth for a given userid/apikey via curl