Fixes the API key fetch. Really just takes the topmost code in the list of keys, so if that key doesn't have read/write permissions, it most likely won't work for the widget.
This doesn't actually fix the problem, the script uses the old V1 API as I haven't updated it. Commit f04ceb953719e9393c42e3f67e33c50b07e1e657 fixes this problem
Fixes the API key fetch. Really just takes the topmost code in the list of keys, so if that key doesn't have read/write permissions, it most likely won't work for the widget.