jzempel/fedex

Help integrating Fedex API

Closed this issue · 2 comments

HI Jonathan,

I want to use your API for integrating fedex with OpenERP. I was looking in tests.py and want to know what would be the "CONFIGURATION" variable value which is passed to different functions.

One more advice. As I want this API to integrate in OpenERP, will this work out. I am thinking of passing all different values to the functions in the API. I mean any suggestions while actually doing integration for successful implementation.

Very much thanks in advance.

@rjpathan, in production, you might use the fedex API like this:

from fedex.config import FedexConfiguration
from fedex.services import FedexService

key = "yourSecretKey"
password = "yourPassword"
account_number = "0123456789"
meter_number = "9876543210"
configuration = FedexConfiguration(key=key, password=password, account_number=account_number, meter_number=meter_number)
service = FedexService(configuration)
address = service.shipment_service.create_address()
# etc.

I don't know anything about OpenERP, so I'm not able to comment on how to best integrate the API.

Thanks Jonathan. Will try to integrate it.