"Try it out" not working for me

  • 109 Views
  • Last post 30 October 2024
hemonster posted this 30 October 2024

Hi there,

 

Newbie here, trying to wrangle these APIs using Python. I wasn't getting much luck with my Python code, so I went here to try it out there:

https://developer.electricityinfo.co.nz/WITS/documentation/market-prices#/Market%20Prices/get_nodes

At the top of that page I signed into the client_id and client_secret as per what I have registered for OAuth on the developer portal. 

Though I note that I didn't fill in "redirect_uris" parameter - what should this be?

I was trying to get a list of Schedules, here is the response

401:

 cache-control: max-age=0, no-cache, no-store  content-length: 12  expires: Wed, 30 Oct 2024 03:25:03 GMT  pragma: no-cache 

This is not using my code but on the "Try it out" button, no additional parameters needed.

 

Can sombody tell me what I'm doing wrong?

 

Best regards,

Hemon

Order by: Standard | Newest | Votes
Phil Bishop posted this 30 October 2024

Perhaps try reaching out to the WITS team - see https://www1.electricityinfo.co.nz/help.

The APIs you're trying to use are provided by WITS, not the Electricity Authority.

 

  • Liked by
  • hemonster
hemonster posted this 30 October 2024

Thanks Phil ... I'll try there.