adapt API to the new standards
Merge pull request #54 from franleplant/affiliate-fixes

adapt API to the new standards