Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

aligncenter

...

On This Page

Table of Contents

...

Info

The CLI references “skysync.” This is expected.

Sessions

In the following examples, the authentication parameters are provided within the configuration file.  See the authentication section for more information.

Get an Access Token

Example 1: Get a raw access token

In the following example, the authentication parameters are provided within the configuration file.  See the authentication section for more information.  

Command

Code Block
skysync-cli sessions token

Example results

Code Block
eyJhbGciOiJSUzI1NiIsImtpZCI6IldVV0FXSlVKS1hFNUU1RDdZUFFOTFlCU0dRNzg1NVJZWTJYVVJJRUYiLCJ0eXAiOiJKV1QifQ.eyJzdWIiOiI2ZmNlNmI0Y2VlMTg0MDc3OTNhZDJlMTVmYTZjY2M2NyIsInRva2VuX3VzYWdlIjoiYWNjZXNzX3Rva2VuIiwianRpIjoiOGVlMGNjZWYtZmE4OS00ZTA5LTkwNzAtNTI3MDZkOGE3NWEyIiwic2NvcGUiOlsicHJvZmlsZSIsInJvbGVzIl0sImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTA5MC8iLCJuYmYiOjE1MTA4ODg3MDcsImV4cCI6MTUxMDg5MjMwNywiaWF0IjoxNTEwODg4NzA3LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjkwOTAvIn0.f4IG8E9W1ts0CilM_bOy5GIhW91RQpoBC34BsJF40FKeS7Smoh8gZ4nccwnwic9exOFcWx8wHmMUIgiZPgmM1Y8SJqKI4CBTQhQ1xAeLnhGXMelfSxC990lgoTk7wtZEzqcvP2Ls9kAWcqsgcf99uZ_4f2T3A3koXAs1vgxVPN0h5rDNdi4txywO30tXzCwYa13u1nkagOyLXDcaJcgjhob8IsJMgGlTzJjXFFMc_iHSX0dZ0J3rSH2Gn_wZ9C2iCgPP3OvM2O8eQkFs9ZzdSsNE1ZgEOncNAU-0Spy-5VnIa79kLZ9ysU-4jOHkr2VhgoE3FAC77hxmn7m-guCg

Example results (JSON)

Code Block
[
  {
    "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI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