def getRegToken(self):
self.verifyToken(self.Auth.SkypeToken)<EOL>token, expiry, msgsHost, endpoint = SkypeRegistrationTokenProvider(self).auth(self.tokens["<STR_LIT>"])<EOL>self.tokens["<STR_LIT>"] = token<EOL>self.tokenExpiry["<STR_LIT>"] = expiry<EOL>self.msgsHost = msgsHost<EOL>if endpoint:<EOL><INDENT>endpoint.config()<EOL>self.endpoints["<STR_LIT>"] = endpoint<EOL><DEDENT>self.syncEndpoints()<EOL>if self.tokenFile:<EOL><INDENT>self.writeToken()<EOL><DEDENT>
Acquire a new registration token.

Once successful, all tokens and expiry times are written to the token file (if specified on initialisation).