using oauth2 with curl