def oauth_client_create(self, name, redirect_uri, **kwargs):
params = {<EOL>"<STR_LIT:label>": name,<EOL>"<STR_LIT>": redirect_uri,<EOL>}<EOL>params.update(kwargs)<EOL>result = self.client.post('<STR_LIT>', data=params)<EOL>if not '<STR_LIT:id>' in result:<EOL><INDENT>raise UnexpectedResponseError('<STR_LIT>',<EOL>json=result)<EOL><DEDENT>c = OAuthClient(self.client, result['<STR_LIT:id>'], result)<EOL>return c<EOL>
Make a new OAuth Client and return it