Hi
My API code suddenly stopped working on 23 August 2023
curl --request POST \
--url https://api.opensubtitles.com/api/v1/login \
--header 'Accept: application/json' \
--header 'Api-Key: <insert my key>' \
--header 'Content-Type: application/json' \
--data '{
"username": “my username,
"password": "my password"
}'
response
<!DOCTYPE html>
<html>
<head>
<title>403 User-Agent header is wrong; set it to App name with version eg: MyApp v1.2.3</title>
I've never seen that 403 saying it needs and App name - so added this but now
curl --request POST \
--url https://api.opensubtitles.com/api/v1/login \
--header 'Accept: application/json' \
--header 'Api-Key: <insert my key>' \
--header 'Content-Type: application/json' \
--header 'User-Agent: myapp v1' \
--data '{
"username": “my username,
"password": "my password"
}'
{"status":400,"error":"Bad Request"}
Has something changed - the documentation at Stoplight is not saying that the API has changed
Thanks
David