Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK
Please, describe your problem here.
HI,
When I invoque on my swift app the addItem function I get an error ( Error: null)
I’d appreciate any clarification you may provide .
Thank you in advance
static func consulta(){
Backendless.shared.userService.login(identity: "dummyuser@backendless.com", password: "1234567890", responseHandler: { loggedInUser in
print("User has been logged in")
getInstructions(responseHandler: { respuesta in
print(String(describing: respuesta))
let item = ["name": "Milk", "quantity": 1] as [String : Any]
addItem(cartName: "mycart", item: item, responseHandler: { respuesta in
print(String(describing: respuesta))
getItems(cartName: "mycart", responseHandler: { respuesta in
print(String(describing: respuesta))
purchase(cartName: "mycart", responseHandler: { respuesta in
print(String(describing: respuesta))
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
}