Versions Compared

Key

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

...

Code Block
synapse login -u <username> -p <password> --rememberMe

A Synapse access token is more secure than your password and is highly recommended to be used to login instead of using your password.

...

Install the Synapse R client synapser to download data from Synapse. Login using your password or preferably an access token.

Code Block
languager
library(synapser)

# using password 
synLogin("my_username", "password")

# OR using an access token
synLogin(authToken="token")

...

Install the Synapse Python client synapseclient to download data from Synapse, the pandas library to read a csv file and the os module to make a directory. Login to Synapse using your password or preferably an access token.

Code Block
languagepy
import synapseclient, pandas, os
syn = synapseclient.Synapse()

# login using a password
syn.login('my_username', 'password')

# OR using an access token
syn.login(authToken='token')

...