Just another observation.. When I successfully execute an API call, there is no result field in the returned JSON string. So, checking the result field will indicate a null value instead of a 1. The API documentation indicates that a 1 should be returned in the result field on success API execution.