I am trying to create an application for Basecamp. I managed to connect and extract data using curl ( Basecamp API using cURL and PHP ). However, this requires login information.
I would like to use OAuth2 with Basecamp, as in https://github.com/37signals/api/blob/master/sections/authentication.md . Unfortunately, there are 0 documentation on this, and I could not find any sample code. I saw that there are several OAuth2 libraries http://oauth.net/code/ , but I have no idea what to do with them.
Can someone please show me some example PHP code, how can I authenticate a user using OAuth2 in php and make a request to the Basecamp API?
Thank you in advance.
source
share