{"_id":"55b254de54aba20d001d5143","__v":0,"category":{"_id":"55b2426a0e11590d008f7950","version":"55a47338e75ca60d00a39332","__v":4,"project":"55a47338e75ca60d00a3932f","pages":["55b2427f7f5e073900ea81f0","55b253d054aba20d001d513b","55b2543f88093a21008beeb0","55b254de54aba20d001d5143"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-24T13:49:30.940Z","from_sync":false,"order":4,"slug":"python-api","title":"Python API"},"project":"55a47338e75ca60d00a3932f","user":"55a4f13d02b09d1900d00a9f","version":{"_id":"55a47338e75ca60d00a39332","project":"55a47338e75ca60d00a3932f","__v":8,"createdAt":"2015-07-14T02:26:00.724Z","releaseDate":"2015-07-14T02:26:00.724Z","categories":["55a47339e75ca60d00a39333","55a4fb7e1a5f991700a940f0","55a6702b80c8a30d00b32684","55a6703b80c8a30d00b32685","55a6ea5516d20b1900ed8f53","55b23ad2329f363900fbc92f","55b23b0a329f363900fbc932","55b2426a0e11590d008f7950"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-24T15:08:14.659Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"Used for passing in the OAuth2 callback token (the auth token) in multi-user applications. In a single user application, this is superfluous.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"lc = LonoClient(client_id=\\\"client id\\\", ...)\\n\\n# once the OAuth2 callback is received, let Lono know about the token\\nlc.save_token(\\\"auth token\\\")\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"lonoclientsave_tokenauth_token","type":"fn","title":"LonoClient.save_token(auth_token)"}

LonoClient.save_token(auth_token)


Used for passing in the OAuth2 callback token (the auth token) in multi-user applications. In a single user application, this is superfluous. [block:code] { "codes": [ { "code": "lc = LonoClient(client_id=\"client id\", ...)\n\n# once the OAuth2 callback is received, let Lono know about the token\nlc.save_token(\"auth token\")", "language": "python" } ] } [/block]