2014-07-22 3 views

답변

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'] 
+0

API에 대한 문서가 있습니까? – Cleyton

+0

@Cleyton [PrestaShop 웹 서비스 사용] (http://doc.prestashop.com/display/PS15/Using+the+PrestaShop+Web+Service) – yenshirak

관련 문제