Hi,
I’m trying to upload an image via url.
First, I get my token from here:
response_json=requests.post('https://api.baserow.io/api/user/token-auth/',{
"username": "myemail@email.com",
"password": "wonderfulpassword"
}).json()
token=response_json['token']
Then I try to upload my file:
headers = {"Content-Type": "application/json","Authorization": "Bearer " + token}
response=requests.post(url="https://api.baserow.io/api/user-files/upload-via-url/",
json={"url": "https://gitlab.com/uploads/-/system/project/avatar/10858056/logo.jpg"},
headers=headers)
Response 401=> ‘{“detail”:“Authentication credentials were not provided.”}’
Could you help me please? I spent 2 hours looking for the issue!
Thank you!