Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 924fd07

Browse files
author
Michael Arthur
committed
add authentication note
1 parent 7745b40 commit 924fd07

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ Authentication has been left to you.
2525
If you are planning on joining Electric Kiwi use my link to score a $50 credit
2626
[sign up link](https://www.electrickiwi.co.nz/RAFaMwYjGd)
2727

28+
#Authentication
29+
30+
To make any requests to the token url you are required to have basic auth using the client id and secret
31+
same as the python api example.
32+
2833

2934
## How to use it
3035

tests/test_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def async_get_access_token(self) -> str:
2828

2929
async def test():
3030
async with ClientSession() as session:
31-
api = ElectricKiwiApi(ApiAuthImpl(session, "eg9F9lXkDM5GyxRWVpT4KTztx94JDGibbSZluAQwfB"))
31+
api = ElectricKiwiApi(ApiAuthImpl(session, ""))
3232
await api.get_active_session()
3333
await api.set_active_session()
3434
# we don't have scope permissions on this one

0 commit comments

Comments
 (0)