How to make Api calls from Magento to third party API
Posted on 2013-01-11
I am looking for a way to make four API calls from Magento using a third party API.
I can't find any good documentation on how to set this up on Magento in terms of file structure. For example, should I create a module? or simply place the files in a folder under my Magento directory?
I would really like just a brief explanation as to how I need to get this started so I can make these calls to a third party system:
1) Log into the BS API - API call LoginRequest()
2) Create a new customer account - API call requestCreateCustomer()
3) Start a customers purchase of an offer - API call requestRegisterCustomerOfferPurchase()
4) Verify sucessful card capture, and confirm the purchase of the offer by the customer - API call requestCompleteCustomerOfferPurchase()
I have all the relevant documentation but I am unsure about the basic file structure in rder for this to work. Any ideas or links to a tutorial will be much appreciated.