You are not logged in.

#1 2016-08-06 10:30:48

moshpirit
Member
Registered: 2016-01-13
Posts: 38

Minitube and the dammed API

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

#2 2016-08-06 12:17:40

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Minitube and the dammed API

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

#3 2016-08-06 14:18:27

moshpirit
Member
Registered: 2016-01-13
Posts: 38

Re: Minitube and the dammed API

Didn't work :\ maybe the API I introduced is wrong

Offline

#4 2016-08-06 14:45:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Minitube and the dammed API

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

#5 2016-08-06 14:47:04

moshpirit
Member
Registered: 2016-01-13
Posts: 38

Re: Minitube and the dammed API

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

#6 2016-08-06 14:51:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Minitube and the dammed API

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

#7 2016-08-06 14:52:41

moshpirit
Member
Registered: 2016-01-13
Posts: 38

Re: Minitube and the dammed API

Wow I thought it was for free (except for privacy issues). Thanks a lot!

Offline

#8 2016-08-06 14:55:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Minitube and the dammed API

You may want to check out https://console.developers.google.com/ if you want to get a personal key.  But don't share it wink


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

#9 2016-08-06 14:59:24

moshpirit
Member
Registered: 2016-01-13
Posts: 38

Re: Minitube and the dammed API

Thank you but AFAIK a Google account is required and I prefer my privacy smile

Offline

Board footer

Powered by FluxBB