Code Monkey home page Code Monkey logo

mediamosa-sdk's Introduction

MediaMosa Software Development Kit

The MediaMosa SDK has been developed for Drupal 6 and Drupal 7. These PHP API tools will enable developers to connect front-end applications (like websites) to the back-end (MediaMosa).

There are slight differences between Drupal 6 and Drupal 7 versions of the SDK. Although the *.class.inc are the same on both versions.

The files

  • mediamosa_sdk.class.inc (6.x / 7.x) This file contains the main class and contants used by front-end and back-end application.

  • mediamosa_sdk.* (6.x / 7.x) These files are Drupal related.

  • mediamosa_connector/* (6.x / 7.x) This is the connector module. You can reuse the mediamosa_connector.class.inc and mediamosa_connector.response.class.inc in your own code when not using the Drupal code.

    • mediamosa_connector.class.inc This class is your connector class that will allow your code to connect and execute REST calls on MediaMosa REST interface(s).

    • mediamosa_connector.response.class.inc This object is return each time you execute a REST call.

    • mediamosa_connector.response.asset.class.inc This object can be used for the /asset REST call. @see MediaMosaCkConnectorWrapper::get_asset().

  • mediamosa_development/* (6.x / 7.x) The mediamosa_development Drupal module allows developers to test and run REST calls directly using a form.

  • mediamosa_restcalls_post2get/* (7.x) This Drupal module maps all POST REST call to /post2get/[rest call] for GET method. Allows you to use POST calls as GET.

Usage

$my_mediamosa_connector = new mediamosa_connector('testapp', 'password', 'http://app1.mediamosa.local');

try { $response = $my_mediamosa_connector->request('version', array('fatal' => TRUE)); } catch (Exception $e) { // .. something went wrong. // Do some handeling of the exception here and don't continue for this point. }

mediamosa-sdk's People

Contributors

rblanker avatar driesvanl avatar mediamosa avatar fransward avatar

Stargazers

 avatar Jerry van der Zwan avatar  avatar Péter Forgács avatar  avatar  avatar  avatar Nicholas Roberts avatar  avatar Kristof Keppens avatar

Watchers

 avatar  avatar  avatar

mediamosa-sdk's Issues

Errors when running Cron

When running cron via Drush, we recieve the follow set of errors many times:

Invalid error type specified mediamosa_connector.response.class.inc:76                                                                                                                                   [warning]
WD mediamosa: Connector request to asset/create was malformed. API path does not exist or failed to respond.                                                                                             [error]
WD mediamosa: Asset creation for file id 978923 failed.

This might be related to a Feeds Import, unless there is something else going on.

This causes a lot of images to not be rendered on the site properly.

mediamosa_sdk::checkLanguage is not defined

In the module media_mediamosa.module line 312, there is a call to this function:

if (!mediamosa_sdk::checkLanguage($value)) {

That function is not defined anywhere in mediamosa_sdk module so the validation function always fails with a PHP Error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.