prestashop orders client
1.0.0
Prestashop Orders Client는 주문 데이터를 원활하게 추출하도록 설계된 Prestashop API의 간단하고 철저한 테스트 클라이언트입니다. 처음에 새로운 유료 주문을 우편 서비스로 보내는 것과 같은 작업에 대한 자동화 요구를 충족시키기 위해 처음 만들어졌으며,이 사용하기 쉬운 클라이언트를 커뮤니티와 공유하기로 결정했습니다. 우리는 그것이 다른 사람들에게도 유용하기를 바랍니다!
> >> from prestashop_orders_client import PrestaShopOrderClient
> >> client = PrestaShopOrderClient ( shop_link = "myshop.com" , api_key = "my_api_key" )
> >> client . get_order ( 1 )
Order ( id = 1 , total_paid = 500.0 , reference = 'ABCD'
order_state = 'Shipped' , email = '[email protected]' ,
first_name = 'John' , last_name = 'Doe' ,
company_name = None , phone = '+12345678' ,
address = 'Example address' ,
city = 'Example city' , post_code = '123456' ,
country = 'Example country' , state = None )
> >> client . get_all_orders ()
[
Order ( id = 1 , total_paid = 500.0 , reference = 'ABCD'
order_state = 'Shipped' , email = '[email protected]' ,
first_name = 'John' , last_name = 'Doe' ,
company_name = None , phone = '+12345678' ,
address = 'Example address' ,
city = 'Example city' , post_code = '123456' ,
country = 'Example country' , state = None ),
Order ( id = 2 , total_paid = 1000.0 , reference = 'ABCD'
order_state = 'Shipped' , email = '[email protected]' ,
first_name = 'John' , last_name = 'Doe' ,
company_name = None , phone = '+12345678' ,
address = 'Example address' ,
city = 'Example city' , post_code = '123456' ,
country = 'Example country' , state = None ),
....
]
>> > client . orders_amount
8Prestashop API가 요구하는대로 서버에 SSL 인증서가 설치되어 있는지 확인하고 클라이언트는 요청을 수행하기 위해 "HTTP"를 사용합니다.
클라이언트는 PYPI에서 사용할 수 있으며 Python 3.10+가 필요합니다.
$ python -m pip install prestashop_orders_client 이 프로젝트는 Apache 2.0 라이센스에 따라 라이센스가 부여됩니다.