from infusionsoft.library import Infusionsoft
INFUSION_SOFT_APP_NAME = ‘APPNAME’
INFUSION_SOFT_API_KEY = ‘KEY’
ORDER_DETAILS = {
‘contactID’: 860825,
‘cardID’: 0,
‘planID’: 0,
‘productIDs’: [2],
‘subscriptionIDs’: ,
‘processSpecials’: 0,
‘promoCodes’: ,
‘leadAffiliateID’: 3,
‘saleAffiliateID’: 3
}
def infusion_soft_api(order):
infusionsoft = Infusionsoft(INFUSION_SOFT_APP_NAME, INFUSION_SOFT_API_KEY)
email = ‘testjohndoe1@email.com’
ids = infusionsoft.ContactService(‘findByEmail’, email, [‘id’, ])
return infusionsoft.OrderService(‘placeOrder’, order)
if name == ‘main’:
print infusion_soft_api(ORDER_DETAILS)
ERROR i am receiving
(‘ERROR’, <Fault 0: ‘No method matching arguments: java.lang.String, java.util.HashMap’>)