Skip to content

Commit d9fe2b3

Browse files
chore: speedup initial import
1 parent b4815b2 commit d9fe2b3

File tree

2 files changed

+2682
-875
lines changed

2 files changed

+2682
-875
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ app = Flask(__name__)
240240
# - The `secret` argument to `webhooks.unwrap`
241241
client = Increase()
242242

243+
243244
@app.route("/webhook", methods=["POST"])
244245
def webhook():
245246
request_body = request.get_data(as_text=True)
246247

247248
try:
248-
249-
event = client.webhooks.unwrap(request_body, request.headers, secret='your webhook secret')
249+
event = client.webhooks.unwrap(request_body, request.headers, secret="your webhook secret")
250250

251251
if event.type == "account.created":
252252
print("Account created:", event.data)
@@ -284,6 +284,7 @@ app = Flask(__name__)
284284
# - The `secret` argument to `webhooks.unwrap`
285285
client = Increase()
286286

287+
287288
@app.route("/webhook", methods=["POST"])
288289
def webhook():
289290
request_body = request.get_data(as_text=True)

0 commit comments

Comments
 (0)