Skip to content

Commit f442cdc

Browse files
author
=
committed
Add things
1 parent 1036276 commit f442cdc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
**/.env/

Crypto-Price/app.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import requests
2+
3+
#payload = {"data":["id"]}
4+
#r = requests.get("https://api.coinbase.com/v2/currencies",params=payload)
5+
#r = requests.get("https://api.coinbase.com/v2/prices/BTC-USD/buy")
6+
7+
payload = {'key1': 'value1', 'key2': ['value2', 'value3']}
8+
r = requests.get('https://httpbin.org/get', params=payload)
9+
10+
print(r.json())

0 commit comments

Comments
 (0)