def register(self, server=None):
if (self.key or self.secret):<EOL><INDENT>return self.update()<EOL><DEDENT>server_data = self.request(server)<EOL>self.key = server_data["<STR_LIT>"]<EOL>self.secret = server_data["<STR_LIT>"]<EOL>self.expirey = server_data["<STR_LIT>"]<EOL>
Registers the client with the Pump API retrieving the id and secret