basically I'm trying to do this thing in my app where the user can make api calls only 3 times in 24 hours. after that it will have to wait until next day.
I know its best to save it in the database, but for now, I just wanna do it easy way and then later save it in the db.
The easiest way would be to keep track of the last time an API call was made (persisted to $storage), and reset your counter if it has been more than 24 hours.
basically I'm trying to do this thing in my app where the user can make api calls only 3 times in 24 hours. after that it will have to wait until next day.
I know its best to save it in the database, but for now, I just wanna do it easy way and then later save it in the db.