How to autofollow the user who followed me


I am making a google app script, Google spreadsheet , where i like to auto follow the user who following me.
For example i trigger a function every after 4,5 hours which keep checking my new follower, and then will save that userid and auto follow that user. From last 1week have studied whole rest api, but didnt find anything like post following. I am able to retweet, tweet, favourite, but not able to follow. Pls let me know is there any api available or any other suggestions.


Hi @satindersinght, please review the automation rules and best practices before you implement such behavior.

With that said, you want to use POST friendships/create.