* `Post()` and `Conversation()` objects require it to authenticate and
do their work,
-* `Client()` uses it for loging in to pod and other stuff,
* streams use it for getting their contents,
* etc.
Both ways are valid and will result in exactly the same connection.
But consider the following example:
-
connection = diaspy.connection.Connection(pod='https://pod.example.com',
username='user',
password='password')
password `passphrase` because data passed to `login()` overrides data
passed directly to object.
-**Remember:** if you pass something to `login()` it will not only *override* but
-also *overwrite* the username and password!
-
-
-----
-
-##### Switching pods
-
-`Connection()` provides functionality for switching pods on the fly.
-This can be achieved with `podswitch()` method.
+**Remember:** if you pass something to `login()` it will *override* credentials set when the
+connection was created.
-If login to a new pod is successful your connection is just changed
-overwritten but if it fails everything else also fails and the current
-connection is broken.
----
which is passed to pod with several requests to prove you are who you are
pretending to be.
-`Connection` providesyou with a method to fetch this token and perform
+`Connection` provides you with a method to fetch this token and perform
various actions on your account.
This method is called `_fetchtoken()`.
-It will try to download new token for you.
+It will try to download a token for you.
Once a token is fetched there is no use for doing it again.
You can save time by using `get_token()` method.
##### Note for developers
If you want to write your own interface or client for D\*
-`Connection()` will be the only object you need.
+`Connection()` is the only object you need.
----