Make functions methods so that auth details can be modified after __init__.

This seems more correct than hardcoding them.