I want to use different API keys to collect data every time my program starts.
For example, I have the following two keys:
apiKey1 = "123abc"
apiKey2 = "345def"
and the following URL:
myUrl = http://myurl.com/key=...
When the program starts, I would like to myUrl
use apiKey1
. As soon as it starts up again, I would like it to use apiKey2
etc ... ie:
First start:
url = "http://myurl.com/key=" + apiKey1
Second run:
url = "http://myurl.com/key=" + apiKey2
Sorry if that doesn't make sense, but does anyone know a way to do this? I have no idea.
EDIT:
To avoid confusion, I reviewed this answer. But this does not answer my request. My goal is to switch between variables between running my script.