You are not logged in.
I'm trying to add the API code (Mod edit: Redacted API key) but I don't know how. I added it to /etc/profile.d/minitube.sh as
export GOOGLE_API_KEY="AIzaSyCkfP----- Redacted ------gC93d44k"
but didn't work. Minitube still shows me an API error.
Last edited by ewaller (2016-08-06 14:45:59)
Offline
Anything in /etc/profile.d only gets sourced when you login. Did you logout and login again after adding that?
You can check whether the environment variable got exported with:
$ export | grep GOOGLE_API_KEY
You can also try launching minitube with
$ GOOGLE_API_KEY="<your_key>" minitube
Offline
Didn't work :\ maybe the API I introduced is wrong
Offline
Did you seriously just post your API key on an open public forum?
I strongly suggest you go invalidate that key and generate a new one.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Actually I found it on Internet publicly, I don't use anything from Google, but how can publishing an API key could be something bad for me?
Offline
Because that key allows you to use the API. Google tracks the use of the API and bills you for its use. Or at the very least, caps your usage per day for unbilled stuff.
Giving it out could be very expensive if it were your key backed by your credit card. Or, you will never be able to use it as it is always capped out. Perhaps that is the problem.
Last edited by ewaller (2016-08-06 14:51:57)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Wow I thought it was for free (except for privacy issues). Thanks a lot!
Offline
You may want to check out https://console.developers.google.com/ if you want to get a personal key. But don't share it
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Thank you but AFAIK a Google account is required and I prefer my privacy
Offline