Skip to content

Set environment variables to use your own API keys

Emmanuel Odeke edited this page Sep 1, 2015 · 3 revisions

You can set your environment variables in either your shell or permanently

in your ~/.bashrc (if on Linux) or ~/.bash_profile (if on OS X) files like this

$ cat << ! >> ~/.bashrc
> export GOOGLE_API_CLIENT_ID=<your_client_id>
> export GOOGLE_API_CLIENT_SECRET=<your_secret>
> !
$ source ~/.bashrc # Or open a new shell

as mentioned you could do this temporarily in your current shell e.g

export GOOGLE_API_CLIENT_ID=<your_client_id>
export GOOGLE_API_CLIENT_SECRET=<your_secret>