我正在尝试在Prestashop API中找到一些样本,我可以:
我正在尝试实现集成,但在Ruby
中找不到一种简单的方法答案 0 :(得分:3)
您可以使用HTTParty:
require 'httparty'
SITE_URL= 'http://example.com'
WEB_SERVICE_KEY = 'EXAMPLE'
response = HTTParty.get "#{SITE_URL}/api/orders?display=full", basic_auth: {username: WEB_SERVICE_KEY }
orders = response['prestashop']['orders']