You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low priority, as someone who burned a chunk of the afternoon fighting with '{"status": "error", "error": "Required argument \\"params\\" not found"}'.
The Python example uses urllib but even copy-pasting this example I had problems. It might be worth adding examples with aiohttp and requests to the fray somewhere. The working operation of requests.post(f"https://www.lalal.ai/api/split/", headers=headers, data={"params":json.dumps([params])}) can be tricky to find, even with the documentation available.
It might be nice also to accept something like requests.post(..., json=params) alongside the existing multi-part form data. It's a little friendlier on the dev side.
The text was updated successfully, but these errors were encountered:
Low priority, as someone who burned a chunk of the afternoon fighting with
'{"status": "error", "error": "Required argument \\"params\\" not found"}'
.The Python example uses urllib but even copy-pasting this example I had problems. It might be worth adding examples with aiohttp and requests to the fray somewhere. The working operation of
requests.post(f"https://www.lalal.ai/api/split/", headers=headers, data={"params":json.dumps([params])})
can be tricky to find, even with the documentation available.It might be nice also to accept something like
requests.post(..., json=params)
alongside the existing multi-part form data. It's a little friendlier on the dev side.The text was updated successfully, but these errors were encountered: