The only way to do this would be to create two unique links and send them to groups A and B separately. Our API does not allow you to distinguish individual users clicking through a given link.
If you use Google Analytics-style utm parameters to create two unique links pointing to the same place, all the clicks will also be rolled up into the same aggregate count for that URL.