astorm / blackboard-soap-client Goto Github PK
View Code? Open in Web Editor NEWA PHP client library for Blackboard 9's Soap API
A PHP client library for Blackboard 9's Soap API
In Soap/Parameters/Base.php:
$body .= '</ns1:filter>';
should be replaced with:
$body .= '</ns1:'.static::NAME.'>';
(We're assuming that we're always closing a filter tag, when in some cases we are closing an 'f' tag or something else. You need to reference static::NAME for this to be correct. Causes Blackboard to not respond properly)
In /Soap/Parameters/CourseMembership/MembershipFilter.php:
public $courseIds;
should be replaced with:
public $courseId;
AND
'courseIds'=>$this->courseIds,
should be replaced with:
'courseId'=>$this->courseId,
(The correct name is courseId without the 's'. Adding the 's' causes blackboard to not respond correctly)
This file: /Soap/Legacy/Coursemembership.php
needs to be renamed to:
/Soap/Legacy/CourseMembership.php
(The capitalization mistake throws errors)
The bbphp.php
file, as well as everything in services/
<?php
namespace Pulsestorm\Blackboard\Soap\Parameters\Course;
class CourseFilter
{
const NAMESPACE_XSD = 'http://course.ws.blackboard/xsd';
const NAME = 'filter';
public function serializeForParam()
{
$body = '<ns1:' . self::NAME . ' xmlns:ns2="' . self::NAMESPACE_XSD . '">';
foreach ($this->getData() as $key => $arg) {
$body .= '<ns2:' . $key . '>' . $arg . '</ns2:' . $key . '>';
}
$body .= '</ns1:filter>';
return $body;
}
public function getData()
{
return get_object_vars($this);
}
}
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.