Skip to content

Commit 3ea3f27

Browse files
committed
temp fix for readme sample, until we add factory
1 parent 7098d6f commit 3ea3f27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pip install vsts
1717
To use the API, establish a connection using a [personal access token](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=vsts) and the URL to your Azure DevOps organization. Then get a client from the connection and make API calls.
1818

1919
```python
20-
from vsts.vss_connection import VssConnection
20+
from azure.devops.connection import Connection
2121
from msrest.authentication import BasicAuthentication
2222
import pprint
2323

@@ -27,10 +27,10 @@ organization_url = 'https://dev.azure.com/YOURORG'
2727

2828
# Create a connection to the org
2929
credentials = BasicAuthentication('', personal_access_token)
30-
connection = VssConnection(base_url=organization_url, creds=credentials)
30+
connection = Connection(base_url=organization_url, creds=credentials)
3131

3232
# Get a client (the "core" client provides access to projects, teams, etc)
33-
core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient')
33+
core_client = connection.get_client('azure.devops.v4_0.core.core_client.CoreClient')
3434

3535
# Get the list of projects in the org
3636
projects = core_client.get_projects()

0 commit comments

Comments
 (0)