I am trying to develop a website where it can connect to PG&E APIs and read my daily electricity usage. Here are the lists of supported APIs for PG&E. I am thinking about using Python to achieve this. I have experience with FastAPI and Django, but I have never really connected to an external API before. Can someone give me some direction on how to do this? And some resources will be appreciated. Thanks!
I am thinking about using Python to achieve this. I have experience with FastAPI and Django, but I have never really connected to an external API before. Can someone give me some direction on how to do this? And some resources will be appreciated. Thanks!
Let's say I want to read from a Usage & Billing API that is a GET method and requires four parameters: 1) published-min=(start date in Zulu time) & published-max= (end date in Zulu time) 2) updated-min = (earliest update date in Zulu time) & updated-max = (latest update date in Zulu time). The URL is ../espi/1_1/resource/Batch/Subscription/{SubscriptionID, ad it needs an access token. How do I open the access token?