take auth-stuff as args, and do both kind of requests

You can now call the script with the arguments on commandline.
Both requests are done