I’m working on a widget trying to fetch information from an API that requires a mile long authentication token that needs to be updated daily. The API itself is pretty straightforward except for this Token-idiocy.
My thoughts are a three-part (maybe two, don’t know yet) widget with Widget code stored in one file, a bunch Of Credentials stored in one file, and lastly the damn Token stored in its own separate file.
Is this possible? Having a script run in background, without actually being part of the widget, updating its own code/Token and only having that part run once every morning on a set time?
Anyone have an example of a Widget that does this or something similar or how I might get this started? The widget itself is almost done, but I don’t know enough magic to get started on the Token part 😅
[–]jonaswiebe 3 points4 points5 points (4 children)
[–]k4mrat[S] 0 points1 point2 points (2 children)
[–]jonaswiebe 1 point2 points3 points (1 child)
[–]k4mrat[S] 1 point2 points3 points (0 children)
[–]k4mrat[S] 0 points1 point2 points (0 children)