schoology / schoology_php_sdk Goto Github PK
View Code? Open in Web Editor NEWPHP SDK for making requests against the Schoology API
PHP SDK for making requests against the Schoology API
I use composer (https://getcomposer.org/) and its autoload libraries with my php projects, and would like to import the schoology_php_sdk library through composer. Could you register this library with composer to make it easy to import it into php projects?
There is an assumption that $body is an array in _curlRequest, line 317. There is no else branch, meaning that if $body is a string, you will get an error ($json_body will not be defined).
I propose to add the else branch, if that is actually the intended way.
if(is_array($body ))
$json_body = json_encode( $body );
else
$json_body = $body;
$curl_options[ CURLOPT_POSTFIELDS ] = $json_body;
I tested your SDK on apache server with php version 5.5 and I saw "Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback" error. You can read about that here http://php.net/manual/en/migration55.deprecated.php.
I changed your SDK. You can check now.
I am getting the following error when using the ValidateLogin() function in SchoologyApi.class.php.
Error parsing SAML 2.0 response
When uploading files, request body will be a blob. See documentation of the process here: https://developers.schoology.com/api/uploading-files
It would be nice if this SDK supported this.
Using the documentation for LTI 1.3 apps we can exchange the JWT token to an oauth 2.0 access token using
OAuth 2 Access Token Endpoint: https://lti-service.svc.schoology.com/lti-service/access-token
if we have the following form params:
'grant_type' => 'client_credentials',
'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
'client_assertion' => '....',
'scope' => '????',
what should be placed in the scopes key? tried https://purl.imsglobal.org/spec/lti/v1p3/scope/user.readonly
based on the naming conventions and it keeps saying invalid scope no matter what i try.
documentation is extremely lacking as well as online resources.
Thank You.
How does this work when deploying an app? Would we need to register with Schoology? Would we request keys for each district site and then use those keys according to the referrer?
Hey, this is an API issue, figured I'd put it here so someone at Schoology would see it.
The API doesn't return more than 200 results, no matter what limit you set. It's on Schoology's side, nothing to do with my client. Can this be resolved?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.