Python: Get The Status Of A Letter With GetLetterStatusV2()

"""
Simple script to get a letter's current status using the PostalMethods 
GetLetterStatusV2 SOAP API call.
You must set your SOAP client with a reference to 
the PostalMethods Web Service: 
$ wsdl2py --url https://api.postalmethods.com/PostalWS.asmx?WSDL 
Detailed instructions available in the Python samples zip file
"""
 
from postalmethods import client
 
print 'Testing GetLetterStatusV2...'
c = client.PmClient('USERNAME','PASSWORD')
 
letterId = 0000000 # Replace with a valid letter ID.
print '   Result: ' + str(c.getLetterStatusV2(letterId))
 
"""
Result = -3000 means that the data was successfully retrieved.
A negative value means an error occurred.
See the PostalMethods Status Codes: http://www.postalmethods.com/statuscodes#webservice.
"""