How do you get the memdership pass in Pokemon diamond?

You have to have Nintendo wi-fi and get the mystery gift