diff --git a/docs/topics/api-clients.md b/docs/topics/api-clients.md index 1de669b42..62ca2b402 100644 --- a/docs/topics/api-clients.md +++ b/docs/topics/api-clients.md @@ -269,12 +269,12 @@ For example, using the "Django REST framework JWT" package client = coreapi.Client() schema = client.get('https://api.example.org/') - action = ['api-token-auth', 'obtain-token'] - params = {username: "example", email: "example@example.com"} + action = ['api-token-auth', 'create'] + params = {"username": "example", "password": "secret"} result = client.action(schema, action, params) auth = coreapi.auth.TokenAuthentication( - scheme='JWT', + scheme='Token', token=result['token'] ) client = coreapi.Client(auth=auth)