I’ve added the backendless sdk to my project and have intialized by using
backendless?.hostURL = BACKENDLESS_HOST backendless?.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM)
I downloaded the objective c hosted api and added the files to my project. I imported them in my bridged header. When i try to use my custom service i receive app id or secret are incorrect. So i attempted to use a work around by using invoke custom service.
let array: NSArray = [newUser, responseBlock, errorblock] self.appDelegate.backendless?.customService.invoke(self.appDelegate.SERVICE_NAME, serviceVersion: self.appDelegate.SERVICE_VERSION_NAME, method: "postUser", args: array as! [Any])
I get the same error app id or secret are incorrect. I’ve tried using curl with rest to test the app id and secret and that works but through code i receive errors and rest with custom objects is either not possible or way to troublesome to consider. There are 0 samples showing how to use a hosted service unless I’m just not good at looking. Can you tell me why I’m receiving such errors or point in the direction of something that would help me?