loduis / teamwork.com-project-management

PHP API for Teamwork.com
https://developer.teamwork.com/
MIT License
70 stars 59 forks source link

Use Authenticate to auto-detect company URL #9

Closed 13rac1 closed 11 years ago

13rac1 commented 11 years ago

It would be useful to optionally auto-detect the company URL. The authenticate action returns information about the company account including the correct URL.

API details: http://developer.teamworkpm.net/account#the_'authenti

Class initialization would simplify to:

TeamWorkPm::setAuth(API_KEY); 
loduis commented 11 years ago

I think a good idea to just implement it.

13rac1 commented 11 years ago

Wow! Fast response! Thanks!

BTW: You accidentally left a print_r in setAuth(): https://github.com/loduis/TeamWorkPmPhpApi/blob/master/TeamWorkPm.php#L57

loduis commented 11 years ago

This fixed now, thanks.