smithmr8 Posted June 22, 2011 Share Posted June 22, 2011 Hi, Trying to get an API to work with PHP. Have found the following code: https://github.com/auzigog/php_pivotal_tracker/blob/master/pivotaltracker_rest.php Unable to get it to work, after filling in my credentials. Try to run a function, and just get told it's undefined. ect.. How, and where, would I run the functions specified in those classes ? Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/240093-php-classes/ Share on other sites More sharing options...
HDFilmMaker2112 Posted June 22, 2011 Share Posted June 22, 2011 Are you calling the class before the function? I'm not great at OO programming but, I believe that's what you need to do: http://www.killerphp.com/tutorials/object-oriented-php/php-objects-page-2.php Step 10. Quote Link to comment https://forums.phpfreaks.com/topic/240093-php-classes/#findComment-1233254 Share on other sites More sharing options...
smithmr8 Posted June 22, 2011 Author Share Posted June 22, 2011 Ah, I've never used alot of PHP OO, so that's a great help. I'll have a play and see what I can come up with. Much appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/240093-php-classes/#findComment-1233259 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.