Hello there,
I've got a DataField which need to 2 things in background:
The first time doing an OAuth
The second time download the json
I can't do this in one time because the background process is terminating before I log successfully
So how the 2 calls of onTemporalEvent can call a different function each time
I've tried:
1.a property but it cannot be used in background
2.a global variable but it seems not to be shared
The second call needs a token returned by the first call
function onTemporalEvent() { if(phase==1){ goOAuth(); }else{ goJson(); } }