Oauth token

How to get oauth2 token id in suitecrm 7.10.9 REST API using PHP Curl?