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
Hashes for confluence-cloud-python-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3bc203fc33c2ad69be40f10abf35bd4934b4ab02939e9b3cfc8c33e169e1f0 |
|
MD5 | 373b193ebb4e2a99d86011bee5ea98c5 |
|
BLAKE2b-256 | 838d0014afd61bea23b39e3253f89287fc6ad1549bba849bb2b8685a421803ba |
Hashes for confluence_cloud_python-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fbe6f300e8a19d817fe1a2c019db7f35f3c59a04f785a5f7aa7ed373e867abf |
|
MD5 | 4f8a57b2ef1fbe409f3003588cbc02b2 |
|
BLAKE2b-256 | f427feb4289070772fc5e02a347fe1bbdc1edb841ed3f17625c53a03caaf38e9 |