Finding the league code of the league you are member of is pretty easy. Just go to leagues, open the league and click on this plus icon on the top-right. Then you can easily invite your friends to leagues you are a part of.