This package will provide access to Atlassian Confluence REST APIs
Project description
Project description
confluence-cloud-ashwani confluence-cloud-ashwani is an API wrapper for Atlassian Confluence written in Python
###Installing
pip install confluence-cloud-python
###Usage Client instantiation
from confluence-cloud-python.client import Client
client = Client('CLIENT_ID', 'CLIENT_SECRET') # Host must have trailing slash OAuth 2.0 (3LO)
For more information: https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/
Direct the user to the authorization URL to get an authorization code A refresh token can be returned with the access token in your initial authorization flow. To do this, add the offline_access scope to the scope parameter of the authorization URL.
scope_list = ['read:confluence-space.summary', 'offline_access','read:confluence-props','read:confluence-content.all', 'read:confluence-content.summary', 'search:confluence']
url = client.authorization_url('REDIRECT_URI', scope_list, 'STATE')
Exchange authorization code for access token
response = client.exchange_code('REDIRECT_URI', 'CODE')
Set access token in the library
client.set_access_token('ACCESS_TOKEN')
Get the cloudid for your site
response = client.get_resource_list()
Set cloudid in the library
client.set_cloud_id('CLOUD_ID')
Refresh token
response = client.refresh_token('REFRESH_TOKEN')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file confluence-cloud-python-1.0.0.tar.gz.
File metadata
- Download URL: confluence-cloud-python-1.0.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3bc203fc33c2ad69be40f10abf35bd4934b4ab02939e9b3cfc8c33e169e1f0
|
|
| MD5 |
373b193ebb4e2a99d86011bee5ea98c5
|
|
| BLAKE2b-256 |
838d0014afd61bea23b39e3253f89287fc6ad1549bba849bb2b8685a421803ba
|
File details
Details for the file confluence_cloud_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: confluence_cloud_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbe6f300e8a19d817fe1a2c019db7f35f3c59a04f785a5f7aa7ed373e867abf
|
|
| MD5 |
4f8a57b2ef1fbe409f3003588cbc02b2
|
|
| BLAKE2b-256 |
f427feb4289070772fc5e02a347fe1bbdc1edb841ed3f17625c53a03caaf38e9
|