Skip to content

Commit e4e47a2

Browse files
author
Kevin Glinski
authored
updating formatting
1 parent 275b060 commit e4e47a2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: PureCloud API SDK - Python
44

55
[![PyPI version](https://badge.fury.io/py/PureCloudPlatformClientV2.svg)](https://badge.fury.io/py/PureCloudPlatformClientV2)
66

7-
Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/python/latest/](https://developer.mypurecloud.com/api/rest/client-libraries/python/latest/)
7+
Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/python/](https://developer.mypurecloud.com/api/rest/client-libraries/python/)
88

99
## Install Using pip
1010

11-
~~~
11+
~~~ python
1212
pip install PureCloudPlatformClientV2
1313
~~~
1414

@@ -20,23 +20,23 @@ Package info can be found at [https://pypi.python.org/pypi/PureCloudPlatformClie
2020

2121
Import the package in the python script:
2222

23-
~~~
23+
~~~ python
2424
import PureCloudPlatformClientV2
2525
~~~
2626

2727
### Authenticating
2828

2929
The Python SDK does not currently contain helper methods to complete an OAuth flow. The consuming applicaiton must complete an OAuth flow to get an access token outside the scope of the SDK. Once an access token is obtained, it should be set on the SDK via `PureCloudPlatformClientV2.configuration.access_token`. For more information about authenticating with OAuth, see the Developer Center article [Authorization](https://developer.mypurecloud.com/api/rest/authorization/index.html).
3030

31-
~~~
31+
~~~ python
3232
PureCloudPlatformClientV2.configuration.access_token = 'cuQbSAf1LU4CuIaSj1D6Gm399jmTr7zLTTc3KPSyCvEyJQIo9r648h3SH8oFzLPPKxE3Mvb166lq5NcjSBoGE5A'
3333
~~~
3434

3535
### Setting the Environment
3636

3737
If connecting to a PureCloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the new base path before constructing any API classes. The new base path should be the base path to the Platform API for your environment.
3838

39-
~~~
39+
~~~ python
4040
PureCloudPlatformClientV2.configuration.host = 'https://api.mypurecloud.ie'
4141
~~~
4242

@@ -49,7 +49,7 @@ There are two steps to making requests:
4949

5050
Example of getting the authenticated user's information:
5151

52-
~~~
52+
~~~ python
5353
usersApi = PureCloudPlatformClientV2.UsersApi()
5454
print usersApi.get_me()
5555
~~~

0 commit comments

Comments
 (0)