You can earn diamonds in the game by completing certain challenges. However, the Basketball Arena mod gives you unlimited diamonds for free.