Last active
December 21, 2023 00:29
-
-
Save leafagriculturedemo/07911bbcfa925ee5724d64829163c90b to your computer and use it in GitHub Desktop.
This file contains 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 | |
url = "https://api.withleaf.io/api/authenticate" | |
data = {'username':'your email', 'password':'your password', 'rememberMe':'true'} | |
headers = {'Content-Type': 'application/json'} | |
response = requests.request("POST", url, headers=headers, json=data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment