Code Monkey home page Code Monkey logo

epicor-prophet-21's Introduction

Connector to the Epicor Prophet 21 for PHP 5.5 >=

The connector allows to communicate with the Epicor Prophet 21 through the REST API, realizing operations of obtaining and updating data. Using the connector it's easy to synchronize your CMS with the Prophet 21.

There are three classes here:

epicor_connector - low-level API. Allow to send queries and get a response. Before work it's necessary to setup credentials:

     /**
     * Open connection to Epicor
     */
    public function open_connection()
    {
        // TODO: Load username, password and entry point (https://p21.yourdomain.com:3443) from your config.
        $user_name = "";
        $password = "";
        $this->entry_point = ""; 

epicor_api - top-level API:

  • Get list of all views;
  public static function get_all_views()
  • Get list of all products;
  public static function get_all_products()
  • Get a specific product by SKU, update a product in the Prophet 21 with a data from CMS;
  public static function get_product($sku)
  • Get list of all orders;
  public static function get_all_orders()
  • Get a specific order and its line-items by an identifier, update an order in the Prophet 21 with a data from CMS;
  public static function get_order($epicor_order_id);
  public static function get_order_with_line_items($epicor_order_id);
  public static function set_order($epicor_order);
  • Get list of all contacts;
  public static function get_all_contacts()
  • Get a customer/contact by e-mail, update a customer in the Prophet 21 with data from CMS;
 public static function get_customer_by_email($email);
 public static function get_contact_by_email($email);
 public static function set_customer($cms_customer);
  • Get data by client addresses by an identifier.
 public static function get_address($address_id)

epicor_data_converter - used to convert data from your CMS data object to the Prophet 21 and vice versa.

Small tooltip about views:

  • p21_view_customer: view to process customers;
  • p21_view_contacts: view to process customers contacts;
  • p21_view_inv_mast: view to process products;
  • p21_view_oe_hdr: view to process orders;
  • p21_view_oe_line: view to process line items in orders (products, quantities).

epicor-prophet-21's People

Contributors

kulikov-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.