Skip to content

Commit dce84eb

Browse files
committed
Fix import layout to satisfy isort CI config
1 parent 5567401 commit dce84eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

official/guides/embeddables-guide/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import os
22
import requests
33
from flask import Flask, jsonify
4-
54
app = Flask(__name__)
6-
75
EASYPOST_API_KEY = os.environ.get("EASYPOST_API_KEY", "")
86

97

108
@app.route("/api/easypost-embeddables/session", methods=["GET"])
119
def create_embeddable_session():
12-
payload = {"user_id": "SUB_ACCOUNT_USER_ID", "origin_host": "ORIGIN_HOST"}
10+
payload = {
11+
"user_id": "SUB_ACCOUNT_USER_ID", # Replace with sub-account user ID
12+
"origin_host": "ORIGIN_HOST", # Replace with integrator's domain
13+
}
1314

1415
response = requests.post(
1516
"https://api.easypost.com/v2/embeddables/session",
@@ -18,7 +19,6 @@ def create_embeddable_session():
1819
headers={"Content-Type": "application/json"},
1920
timeout=10,
2021
)
21-
2222
response.raise_for_status()
2323
return jsonify(response.json())
2424

0 commit comments

Comments
 (0)