Avangate Rest API Client

Python API client for the Avangate service.

Installation

pip install avangate_rest_api_client

Usage Example

Retrieve an order

Retrieve details on a specific order using its unique, system generated reference.

import requests
from avangate_rest_api_client import Client

try:
    client = Client(merchant_code='MERCHANT_CODE', api_secret_key='API_SECRET_KEY')
    client.set_base_url(base_url='https://api.avangate.com/rest/3.0/')
    request = client.get('orders/111111/')
    print(request.json())
except requests.RequestException as e:
    print("Failed to send requests: {}".format(e))

https://github.com/onursa/avangate_rest_api_client

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir