There is a param "nonce":
An additional security element must be passed into the post: nonce - All requests must also include a special nonce POST parameter with incrementing integer. The integer must always be greater than the previous requests nonce value.
Of course I can implement it via integer param and perform ++
operation each time I use it, but what to do if this value is less than it is required and it causes request error? For example if it was reset for example after application reinstall?
Suddenly I found a solution:
@((int)[[NSDate date] timeIntervalSince1970])
I saw in php they use microtime()
function. I hope my function will give the same result