Emarsys API connector php class