companionstudio / instagram-token-agent

A service to keep your Instagram Basic Display API token fresh.
MIT License
133 stars 70 forks source link

Drop Temporize for Heroku Scheduler #49

Open renshuki opened 2 years ago

renshuki commented 2 years ago

@benjamin-hull thanks for the great work on the instagram-token-agent. I needed a quick solution to refresh instgram tokens at minimum cost for a small private project and stumbled upon this repo.

As you may know the Temporize add-on is not free anymore on Heroku and I found https://github.com/companionstudio/instagram-token-agent/issues/33 and https://github.com/companionstudio/instagram-token-agent/issues/39 related to this particular topic. For this reason, I implemented Heroku Scheduler (Free Tier) instead of Temporize in the project.

So here a quick summary of what I changed:

I did that in haste so nothing fancy but it does the job. Of course plenty of room for improvements but that all I can do for now 😅 I didn't notice at first however Heroku Scheduler jobs can't be set to something longer than a daily schedule (kinda short for the long-lived tokens with a validity of 60 days). Also I left memcachier config as it is, so hopefully the token won't be cached for too long.

You may want to merge that in a different branch as I didn't spend much time testing.

benjamin-hull commented 2 years ago

Thanks very much @renshuki ! I will take a look over the next few days - this has been on my list to do for a while. Much appreciated.

Charlie28000 commented 2 years ago

Any updates regarding this issue? :)

mihailShumilov commented 1 year ago

still in review???