def post_to_salesforce(payload):
	x = SFDCUtils()
	logging.debug("payload for SFDC : %s" %payload)
	resp = x.post(payload)
	logging.info("Post response to SFDC : %s" %resp)
	return resp
예제 #2
0
#from atl_pahomqtt import CarriotsMqttClient
#auth = {'username': '******', 'password': ''}
#client_mqtt_post = CarriotsMqttClient(auth)
#client_mqtt_post.post_to_carriots('{"foo":"foo1"}')

from sfdc_utils import SFDCUtils
x = SFDCUtils()
payload = '{"ID__c":"110","SensorID__c":"100","Type__c":"chick1","Status__c":"Transit","ShippingTime__c":"2005-10-08T00:00:00Z"}'
print x.post(payload)
def post_to_salesforce(payload):
    x = SFDCUtils()
    logging.debug("payload for SFDC : %s" % payload)
    resp = x.post(payload)
    logging.info("Post response to SFDC : %s" % resp)
    return resp