def load(self):
identifier = None<EOL>if self.id:<EOL><INDENT>identifier = self.id<EOL><DEDENT>elif self.fingerprint is not None:<EOL><INDENT>identifier = self.fingerprint<EOL><DEDENT>data = self.get_data("<STR_LIT>" % identifier, type=GET)<EOL>ssh_key = data['<STR_LIT>']<EOL>for attr in ssh_key.keys():<EOL><INDENT>setattr(self, attr, ssh_key[attr])<EOL><DEDENT>self.id = ssh_key['<STR_LIT:id>']<EOL>
Load the SSHKey object from DigitalOcean.

Requires either self.id or self.fingerprint to be set.