Giter Site home page Giter Site logo

ricardo's Introduction

Introduction

The Diglin ricardo.ch source code is a PHP Library to get access to the ricardo.ch API which is a .NET Webservice sending Json or SOAP requests. With this library we handle only json requests.

Installation

Install for custom framework

To start you have to include in your PHP include path, the folder of your library folder where you are going to install this library and then set the autoloader. Here is an example with a provided autoloader:

require_once __DIR__ . '/src/SplAutoloader.php';
$autoload = new SplAutoloader(null, realpath(dirname(__DIR__) . '/src'));
$autoload->register();

Install via Composer

Add the following requirements into your composer.json at root project level. You do not need to add an autoloader, composer will handle it for you if your application is compatible with it.

 {
    "require" : {
        "diglin/ricardo": "1.*"
    },
    "repositories" : [
        {
            "type": "vcs",
            "url": "[email protected]:diglin/ricardo.git"
        }
    ]
 }

Magento Composer Installer

In your composer.json at the Magento project level, you will have to set the following informations:

{
   "require" : {
       "magento-hackathon/magento-composer-installer" : "*",
       "diglin/ricardo": "1.*"
   },
   "repositories" : [
   	{
           "type" : "composer",
           "url" : "http://packages.firegento.com"
       },
       {
           "type": "vcs",
           "url": "[email protected]:diglin/ricardo.git"
       }
   ],
   "extra" : {
       "magento-root-dir" : "./"
   },
   "scripts": {
       "post-package-install": [
           "Diglin\\Ricardo\\Composer\\Magento::postPackageAction"
       ],
       "post-package-update": [
           "Diglin\\Ricardo\\Composer\\Magento::postPackageAction"
       ],
       "pre-package-uninstall": [
           "Diglin\\Ricardo\\Composer\\Magento::cleanPackageAction"
       ]
   }
}

How to use it

TODO

Tests

How to configure the test case

To configure the test, please create an ini file in tests/conf/config.ini with the following content: Pay attention, you need two different configurations for each interface language. During the tests, only the German section is supported. So use only this one.

// Ricardo API Config for German version (for example)

[GERMAN]
host = ws.betaqxl.com
partnership_key = YOUR_PARTNER_KEY
partnership_passwd = YOUR_PARTNER_PASS
partner_url = YOUR_WEBSITE_URL
allow_authorization_simulation = true
customer_username =
customer_password = ''
debug = true
display_test_content = true

[FRENCH]
host = ws.betaqxl.com
partnership_key = YOUR_PARTNER_KEY
partnership_passwd = YOUR_PARTNER_PASS
partner_url = YOUR_WEBSITE_URL
allow_authorization_simulation = true
customer_username =
customer_password = ''
debug = true
display_test_content = true

ricardo's People

Contributors

sylvainraye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ultra-prod

ricardo's Issues

Bug fix for Diglin/Ricardo/Services/SellerAccount.php -> getPlannedArticles()

The Parameter is wrong and should be of type "PlannedArticlesParameter".

Exception:

Argument 1 passed to Diglin\Ricardo\Services\SellerAccount::getPlannedArticles() must be an instance of Diglin\Ricardo\Managers\SellerAccount\Parameter\PlannedArticleParameter, instance of Diglin\Ricardo\Managers\SellerAccount\Parameter\PlannedArticlesParameter given, called in /Ricardo/Lib/Diglin/Ricardo/Service.php on line 204 and defined in /Ricardo/Lib/Diglin/Ricardo/Services/SellerAccount.php:329

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.