Basecamp OAuth2 with PHP

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.

+5
source share
1 answer

I recently had to implement OAuth 2.0 for our company. I also browsed the web to try and find information on this topic. I came across these two sites that helped a lot.

OAuth 2.0 implementation example

Online Screencast

Hope this helps.

-1
source

All Articles