Hi,
I have to validate two fields by using a third party api on button click.
What should i use cloud code task or directly hit api on button click.
Hi,
I have to validate two fields by using a third party api on button click.
What should i use cloud code task or directly hit api on button click.
I would use a CloudCode task that you call directly from the app when the user press the button.
If your app flow does not require a synchronous validation, you could have the validation happen asynchronously with calling the CC task via a webhook.
One thing I’ve noticed testing CC is there might be a delay before its status goes to STARTED
Is that just because I’m running that in testing?
Also, If I just needed a distance, or shipping amount, or temperature, then it sure would be easier to call a simple endpoint (via Button) than go thru all the CC stuff. (I’m biased, because CC is kicking my ass right now so I’m not a fan )
@jaymer you make a good point, but CloudCode works great for making asynchronous API calls especially when the application has offline requirements.
yes, i keep forgetting that.
my app def. needs offline, but I forgot about that in the context of your message.
definitely wouldn’t work for me.