How to solve python POST response 405?
import requests
import json
from requests.auth import HTTPBasicAuth
myHeaders = { 'accept': 'application/json', 'content-type': 'application/json', 'X-Killbill-CreatedBy': 'demo', 'authorization':'Basic YWRtaW46cGFzc3dvcmQ=', 'X-Killbill-ApiKey': 'abcd', 'X-Killbill-ApiSecret': 'dcba'}
myData = {'transactionType': 'AUTHORIZE', 'amount': 23, 'currency': 'INR', 'transactionExternalKey': 'python003' }
myParams = {'paymentMethodId': '810d4eae-4668-4c6a-897c-178c041eb67f'}
response=requests.get(
'http://192.168.12.80:8080/1.0/kb/accounts/a6c08c2c-f3eb-456a-a681-6e5262262e94',
params = myParams,
headers = myHeaders,
data = json.dumps(myData),
)
print(response)