Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit b8594c1

Browse files
authored
Merge pull request #268 from cloudant/250-update-client-doc-example
250 update endpoint access example in getting started
2 parents 20cdb29 + 978b60c commit b8594c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/getting_started.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,9 @@ Connecting with a client
3434
3535
# Use Cloudant to create a Cloudant client using account
3636
from cloudant.client import Cloudant
37-
client = Cloudant(USERNAME, PASSWORD, account=ACCOUNT_NAME)
37+
client = Cloudant(USERNAME, PASSWORD, account=ACCOUNT_NAME, connect=True)
3838
# or using url
3939
# client = Cloudant(USERNAME, PASSWORD, url='https://acct.cloudant.com')
40-
41-
# Connect to the server
42-
client.connect()
4340
4441
# Perform client tasks...
4542
session = client.session()
@@ -307,7 +304,7 @@ Cloudant/CouchDB server. This example assumes that either a ``Cloudant`` or a
307304
.. code-block:: python
308305
309306
# Define the end point and parameters
310-
end_point = '{0}/{1}'.format(client.cloudant_url, 'my_database/_all_docs')
307+
end_point = '{0}/{1}'.format(client.server_url, 'my_database/_all_docs')
311308
params = {'include_docs': 'true'}
312309
313310
# Issue the request

0 commit comments

Comments
 (0)