dev-master
9999999-devDMWS-PHP is a library that aims to simplify the use of the Digital Measures Web Services Platform for PHP Developers.
MIT
The Requires
- php >=5.3
- nategood/httpful *
by Johnathan Bamber
DMWS-PHP is a library that aims to simplify the use of the Digital Measures Web Services Platform for PHP Developers.
DMWS-PHP is a library that aims to simplify the use of the Digital Measures Web Services Platform for PHP Developers. This project is currently under development and can not perform all operations available via the REST API., (*1)
Project sponsored by the Feliciano School of Business., (*2)
This library requires the Httful HTTP Client Library., (*3)
$conn = new DMWSConnection("[USERNAME]", "[PASSWORD]");
or to use BETA Environment:, (*4)
$conn = new DMWSConnection("[USERNAME]", "[PASSWORD]", false, true);
try { $ListResource = $conn->getSchema(); foreach($ListResource as $key => $SchemaResource) { print $SchemaResource->getText() . "<br>"; } } catch (Exception $e) { print $e; }
try { $SchemaResource = $conn->getDefaultSchema(); print $SchemaResource->getText(); } catch (Exception $e) { print $e; }
try { $SchemaEntityListResource = $conn->getDefaultSchema()->getSchemaEntities(); foreach ($SchemaEntityListResource as $View) { $SchemeEntityResources = $View->getSchemaEntityResources(); foreach ($SchemeEntityResources as $SchemaEntity) { print $SchemaEntity; } } } catch (Exception $e) { print $e; }
try { $SchemaIndexResources = $conn->getDefaultSchema()->getSchemaIndices(); foreach ($SchemaIndexResources as $SchemaIndexResource) { print $SchemaIndexResource; foreach ($SchemaIndexResource->getIndexEntries() as $IndexEntry) { print $IndexEntry; } } } catch (Exception $e) { print $e; }
try { $SchemaResource = $conn->getDefaultSchema(); $PCIRecords = $conn->getPCI($SchemaResource); foreach($PCIRecords as $Record) { print $Record . "<br>"; } } catch (Exception $e) { print $e; }
try { $SchemaResource = $conn->getDefaultSchema(); $INTELLCONTRecords = $conn->getINTELLCONT($SchemaResource); foreach($INTELLCONTRecords as $Record) { print $Record . "<br>"; $Authors = $Record->getAuthors(); foreach ($Authors as $Author) { print $Author; } } } catch (Exception $e) { print $e; }
08.22.2017 Removed bad argument in function getINTELLCONT() in DMWSConnection., (*5)
Contact me directly via email for support at bamberjp@gmail.com. Feel free to share how you are using this code in your own projects., (*6)
DMWS-PHP is a library that aims to simplify the use of the Digital Measures Web Services Platform for PHP Developers.
MIT