Hello, I am new to ignition.
I am trying to integrate the POST API but it is not working. This API is working fine in POSTMAN.
I want to pass the header values for authentication, but it was passing it as parameter. I don't want to pass it as parameter. I want to pass the header values.
Code:
def test_1():
url = " ************************** "
postParams = {
"ORGANIZATION_CODE": "**"
}
header_Values = {
'client_id': '*******',
'client_secret': '*******'
}
page = system.net.httpPost(url, postData= postParams, headerValues=header_Values )
print page
Error :
IOError: Server returned HTTP response code: 500 for URL
Thank you in advance.