nrgpy.api.auth module#
- class nrgpy.api.auth.nrg_api(client_id='', client_secret='')[source]#
Bases:
object
Parent class for NRG API functionality
- maintain_session_token(filename='.nrgpy_token')[source]#
maintain a current/valid session token for data service api
- request_session_token()[source]#
generates a new session token for convert service api
requires an active account with NRG Systems. to sign up for an account, go to: https://services.nrgsystems.com
- Parameters:
- client_idstr
obtained from NRG Systems
- client_secretstr
- Returns:
- session_tokenstr
valid for 24 hour
- session_start_timedatetime
start time of 24 hour countdown