def thumbnail(self, dump_to=None):
headers = {<EOL>"<STR_LIT>": "<STR_LIT>".format(self._client.token)<EOL>}<EOL>result = requests.get('<STR_LIT>'.format(self._client.base_url,<EOL>OAuthClient.api_endpoint.format(id=self.id)),<EOL>headers=headers)<EOL>if not result.status_code == <NUM_LIT:200>:<EOL><INDENT>raise ApiError('<STR_LIT>'.format(self.id))<EOL><DEDENT>if dump_to:<EOL><INDENT>with open(dump_to, '<STR_LIT>') as f:<EOL><INDENT>f.write(result.content)<EOL><DEDENT><DEDENT>return result.content<EOL>
This returns binary data that represents a 128x128 image.
If dump_to is given, attempts to write the image to a file
at the given location.