Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Is there any way to change the API key on the go instead of relying on settings.py ? #4

Closed
haysberg opened this issue Sep 22, 2020 · 4 comments

Comments

@haysberg
Copy link

Hello, I am trying to change my API key on the go, and it is unfortunately not possible given that Django settings are not made to be changed during runtime anyway.

I was trying to access cass.riotapi.set_api_key like it is mentioned on the official documentation (first example), but it appears that there is no way to change it on the go.

Do you know what would be needed to add this feature to the library ?

Kind Regards,
Téo

@iann838
Copy link
Owner

iann838 commented Sep 22, 2020

Hi there @Couaque , can you give me an example of why and what do you need to change at run time ? so I can get a better context

@iann838
Copy link
Owner

iann838 commented Sep 22, 2020

@Couaque Sorry that I skim over the question cass.set_riot_api_key should work.

@iann838
Copy link
Owner

iann838 commented Sep 30, 2020

Closing after 1 week of innactivity

@iann838 iann838 closed this as completed Sep 30, 2020
@haysberg
Copy link
Author

haysberg commented Oct 1, 2020

Hello, sorry for the late reply.
The response you gave me works, thanks a lot !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants