Offline API access using my un/pw

Generate the oauth token first using either the authorization code or implicit grant flows and then save the token in your script.