The Movie Database Support

Hi, I'm writing an application which I plan to open source. What can I do to not expose my api key?

2 replies (on page 1 of 1)

Jump to last post

Usually it is not required to use your own API key while publishing your code. Make sure you have explained it in documents how other developers can acquire their own APIs. And that should do it. But if you want to include it anyway you can give this article a read - https://code.tutsplus.com/tutorials/protecting-your-keys-from-github--cms-23002

Ya, this comes down to how you want to publish your project. I'll add that since we don't charge for the API, it's not usually a big deal to get people to register their own but if you make the choice to include yours, the main issue you might run into is that someone could take it an abuse it. In that case we block it and you would need to get a new one, but everyone who is using your project would also need to do that (whether it's an update you publish or otherwise).

Your call on the matter but that kind of explains both ways to think about it.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login