承接 agencednd/oro-api-connector-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

agencednd/oro-api-connector-bundle

Composer 安装命令:

composer require agencednd/oro-api-connector-bundle

包简介

Dn'D Oro Api Connector Bundle to extend OroCommerce API

README 文档

README

Dn'D Oro Api Connector for Oro Commerce >= 1.0

This connector between OroCommerce REST API and Alexa Amazon Echo Dot

Requirements

DndOroApiConnectorBundle OroCommerce ,Community Edition
v1.0.* v1.*

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ cd /my/orocommerce/installation/dir
$ curl -sS https://getcomposer.org/installer | php

Then, install DndOroApiConnectorBundle with composer:

composer require agencednd/oro-api-connector-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

The bundle is automatically enabled.

Step 3: ReGenerate the API doc

The bundle expose a controller as API, so you have to regenerate the API doc

php app/console oro:api:doc:cache:clear -e prod

Step 4: Copy the script folder into web folder

The Amazon Function needs to get a wsse header to be authenticated on the Oro's API. The WSSE header is generated from a script in your OroCommerce application. To access of this script, you need to copy the files from vendor/ to web/ with this command line.

cp -R vendor/agencednd/alexa-connector-bundle/Resources/public/scripts/ web/scripts

In web/scripts/generate-wsse-header.php, you have to put your API key : oroUrl/admin/user/profile/view generate key

Step 5: Protect the generate-wsse-header.php script

  • Modify the .htpasswd in ./web/scripts with this
# generate your user and password
'user:passwd'
  • Modify the .htaccess with the good path to .htpasswd

From the "scripts" folder in console

echo $PWD

Copy the path prompted

Then modify the .htaccess AuthUserFile with the string pasted and .htaccess like /srv/www/orocommerce/web/scripts/.htpasswd

So, the OAuth2 is on the roadmap of the Oro team and will replace de WSSE.

Step 6: Create an AWS Lambda Function

Part 1 Part 2

In your intent model put the content of alexa/intents.json

In your AWS Lambda Function put the content of index.js

Step 7: Replace in AWS Function

Line 23

var oroHost = 'example.com';

With your URL.

Line 28 :

    auth: 'user:passwd',

Replace user:passwd by your user password generated for .htpasswd

Let's Play

Roadmap

Index.js:

  • TODO Wording rewrite website/shop to store
  • TODO Refactoring : call token with getApiOption like in getAverageShoppingCart

API:

  • Convert revenue in one currency
  • Get new opportunities
  • Replace WSSE by OAuth2 when it is available
  • Push notifications of new orders

About us

Founded by lovers of innovation and design, Agence Dn'D assists companies for 11 years in the creation and development of customized digital (open source) solutions for web and E-commerce.

agencednd/oro-api-connector-bundle 适用场景与选型建议

agencednd/oro-api-connector-bundle 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 07 月 11 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「rest」 「ecommerce」 「api」 「e-commerce」 「Alexa」 「connector」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 agencednd/oro-api-connector-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 agencednd/oro-api-connector-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 agencednd/oro-api-connector-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2017-07-11