bandigare Posted December 27, 2020 Posted December 27, 2020 I tried to test the API: GET : works DELETE: works POST: not works example (python requests): ------------------- import requests endpoint = "https://api.loyverse.com/v1.0/categories" data = {"name":"test categories"} headers = {"Authorization": "Bearer XXXXXXXXXXXXXXXXXXXXX"} x = requests.post(endpoint, data=data, headers=headers)} ------------------- error code 406 What is wrong?
Featured Comment Jay Rock Posted December 28, 2020 Featured Comment Posted December 28, 2020 Hello, please specify headers: key: Content-Type value: application/json 1
Recommended Posts
Posted by Jay Rock,
1 reaction
Go to this post