Last active
April 20, 2025 12:00
-
-
Save avipars/3f1a6e41028ad9d2660e0f7b36fdfd7c to your computer and use it in GitHub Desktop.
remix a lovable project https://medium.com/avi-parshan-studios/stop-leaking-your-api-keys-on-lovable-dev-3117bb3fe2ec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def remix(project_id, bearer_token): | |
url = f"https://api.lovable.dev/projects/{project_id}/remix" | |
payload = { | |
"include_history": "false", | |
} | |
headers = { | |
"Authorization": f"Bearer {bearer_token}", | |
"Content-Type": "application/json" | |
} | |
return requests.post(url, json=payload, headers=headers) | |
if __name__ == "__main__": | |
project_id = input("Enter project id: ") | |
bearer = input("Enter your bearer token: ") | |
result = remix(project_id, bearer) | |
print(result.status_code) | |
print(result.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://medium.com/avi-parshan-studios/stop-leaking-your-api-keys-on-lovable-dev-3117bb3fe2ec