My goal for today is to move all my adhoc php functions that access the Canvas API into a php class. Once I have that working well, I will hopefully be able to redirect all the includes that are currently accessing the api to the one master file. If everything seems to be working well, I may even put the code up at GitHub. I have no illusions that anything I create will be the best it could be, but maybe at GitHub, someone will fork it and make needed improvements.
Properties:
- private token
- private domain
- public error
- public ready
Methods:
- __construct($token,$domain)
- get_canvas ($uri,$paginate=true)
- post_canvas($uri,$method,$params)
misnamed, you can use any curl method here, but no pagination - is_valid_token()
- upload($file=array())