from spotframework.net.user import NetworkUser from spotframework.net.network import Network import os if __name__ == '__main__': network = Network(NetworkUser(os.environ['SPOTCLIENT'], os.environ['SPOTSECRET'], os.environ['SPOTACCESS'], os.environ['SPOTREFRESH'])) print(network.user.access_token)