Skip to content

Commit 86f8666

Browse files
committed
Using encrypted API key
1 parent 2a87c75 commit 86f8666

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_modules.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import json
22
from datetime import datetime
3+
import os
34
from unittest import TestCase
45

56
import requests
67

78
from etherscan.etherscan import Etherscan
89

910
CONFIG_PATH = "etherscan/configs/stable.json"
10-
API_KEY = requests.get(
11-
"https://jsonblob.com/api/7354bb23-0505-11eb-a3b7-a921883d52ea"
12-
).json()["key"]
11+
API_KEY = os.environ["API_KEY"] # Encrypted env var by Travis
1312

1413

1514
def load(fname):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy