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. 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. 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! Link to comment https://forums.phpfreaks.com/topic/240093-php-classes/#findComment-1233259 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.