Logs in through the BrAPI token call and returns a connection used by the
other breedbase_*() functions and by save_breedbase(). Only the access
token is kept; the password is not stored.
Arguments
- url
Address of the Breedbase site, e.g.
"https://cassavabase.org".- username
Your Breedbase username.
- password
Optional password; see Details.
- site_username, site_password
Only for sites with an extra web password in front of the website (test servers such as cassava-test.sgn.cornell.edu ask for it in a browser pop-up, "Restricted Test Site"): that user name and password. They are used for the non-BrAPI calls (trait composer, analyses); BrAPI does not need them. Usually not needed: when a site asks for a web password, the login first tries your Breedbase user name and password there, and uses them if they work. Leave
site_passwordempty to read it fromBREEDBASE_SITE_PASSWORDor to be asked in a pop-up.