232
234
def grant_access(self, username, password, request_token, access_level,
234
236
"""Grant a level of access to an application on behalf of a user."""
236
239
headers['Authorization'] = self._auth_header(username, password)
237
240
body = "oauth_token=%s&field.actions.%s=True" % (
238
241
quote(request_token), quote(access_level))