bandigare Posted December 27, 2020 Share 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? Link to comment Share on other sites More sharing options...
Featured Comment Jay Rock Posted December 28, 2020 Featured Comment Share Posted December 28, 2020 Hello, please specify headers: key: Content-Type value: application/json 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Posted by Jay Rock,
1 reaction
Go to this post