Updated export script to sign in before making the first API call.