spotframework/getaccesstoken.py
2019-09-04 17:45:26 +01:00

14 lines
413 B
Python

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)