I was confused by this too. All of that stuff is for accessing the TTN WAN network. There is a tutorial showing how to register and get all these numbers. Try searching for TTN or The Things Network. If you just want to communicate between two boards you don't want the WAN library, you want the LoRa library.
I think; I'm new to this myself.