@@ -22,7 +22,7 @@ Note that API 3 tokens should be created for 'regular' Looker users and *not* vi
2222
2323
2424### Ensure that the API is accessible
25- Looker versions 3.4 (and beyond) expose the 3.0 API via a port different from the port used by the web app.
25+ Looker versions 3.4 (and beyond) expose the API via a port different from the port used by the web app.
2626The default port is 19999. It may be necessary to have the Ops team managing the looker instance ensure that this
2727port is made accessible network-wise to client software running on non-local hosts.
2828
@@ -78,14 +78,14 @@ Content-Length: 99
7878{"access_token":"4QDkCyCtZzYgj4C2p2cj3csJH7zqS5RzKs2kTnG4","token_type":"Bearer","expires_in":3600}
7979
8080# Use an access_token (the token can be used over and over for API calls until it expires)
81- > curl -i -H "Authorization: token 4QDkCyCtZzYgj4C2p2cj3csJH7zqS5RzKs2kTnG4" https://localhost:19999/api/3 .0/user
81+ > curl -i -H "Authorization: token 4QDkCyCtZzYgj4C2p2cj3csJH7zqS5RzKs2kTnG4" https://localhost:19999/api/4 .0/user
8282HTTP/1.1 200 OK
8383Content-Type: application/json;charset=utf-8
8484Vary: Accept-Encoding
8585X-Content-Type-Options: nosniff
8686Content-Length: 502
8787
88- {"id":14,"first_name":"Plain","last_name":"User","email":"[email protected] ","models_dir":null,"is_disabled":false,"look_access":[14],"avatar_url":"https://www.gravatar.com/avatar/b7f792a6180a36a4058f36875584bc45?s=156&d=mm","credentials_email":{"email":"[email protected] ","url":"https://localhost:19999/api/3 .0/users/14/credentials_email","user_url":"https://localhost:19999/api/3 .0/users/14","password_reset_url":"https://localhost:19999/api/3 .0"},"url":"https://localhost:19999/api/3 .0/users/14"} 88+ {"id":14,"first_name":"Plain","last_name":"User","email":"[email protected] ","models_dir":null,"is_disabled":false,"look_access":[14],"avatar_url":"https://www.gravatar.com/avatar/b7f792a6180a36a4058f36875584bc45?s=156&d=mm","credentials_email":{"email":"[email protected] ","url":"https://localhost:19999/api/4 .0/users/14/credentials_email","user_url":"https://localhost:19999/api/4 .0/users/14","password_reset_url":"https://localhost:19999/api/4 .0"},"url":"https://localhost:19999/api/4 .0/users/14"} 8989
9090# Logout to revoke an access_token
9191> curl -i -X DELETE -H "Authorization: token 4QDkCyCtZzYgj4C2p2cj3csJH7zqS5RzKs2kTnG4" https://localhost:19999/logout
0 commit comments