here is the idea: i want to make php web site which will be hosted on my server and it will work with my sharepoint 2013 site hosted on office365.
my sharepoint 2013 site is smeasy.sharepoint.com I have read msdn.microsoft.com/en-us/library/jj687469.aspx and registered App with smeasy.sharepoint.com/_layouts/15/appregnew.aspx , after this I have assigned rights with smeasy.sharepoint.com/_layouts/15/appinv.aspx
also i have created oAuth url
and got code in response.
The question is: how to get token by code in php (what url to pass this code and how), i just can not find the way how to do this maybe you may help me and point to article? or at least let me know if this possible because right now i am not sure that this is possible on remote server (not azure).