Getting Channel ID via 'users?login' not working

Assuming the the “https” module, pathname should just be path.