WWW class problem

hi,i am stocking with access token process .
i need to get the access token .first i am using a WWW class to call the url for the process ,then the url redirect me to a URI with a code or access token that i need .by redirecting i can not use WWW class , i was thinking to make the process on my web and send the final result to unity ,but i do not know how to send data from a PHP to unity in unity editor.
any suggestion will be helpful .thanks.

You can use a php page for comunicate with you application, via GET or POST method, see Unity - Scripting API: WWWForm

You may write a SOAP (webservice), too, but is more complicated