how to get access token through curl request in API Version2

how to get access token through curl request in API Version2

I was inserting new user data into zoho crm at the time of user signup on my website using API Version1 with the help of life time authtoken using curl request.

But in API Version2 how I will get access token in backend using curl request without any browser interface.