Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,15 @@ def get_backlinks(api_login, api_key, target_url, filters):
|
|
22 |
}
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
# Making the API request
|
26 |
-
response = requests.post(
|
27 |
|
28 |
# Log the full response for debugging
|
29 |
st.text("API Response:")
|
|
|
22 |
}
|
23 |
}
|
24 |
|
25 |
+
# Print API call details for review
|
26 |
+
api_url = "https://api.dataforseo.com/v3/backlinks/backlinks/live"
|
27 |
+
st.text("Making API Call:")
|
28 |
+
st.text(f"API URL: {api_url}")
|
29 |
+
st.text(f"Headers: {headers}")
|
30 |
+
st.text(f"Post Data: {post_data}")
|
31 |
+
|
32 |
# Making the API request
|
33 |
+
response = requests.post(api_url, json=post_data, headers=headers)
|
34 |
|
35 |
# Log the full response for debugging
|
36 |
st.text("API Response:")
|