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 sigconfluence.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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d2b79d0dcb6c903e43d9257802e1bb4e7c551f5a4644b930cb59a5c4eff142 |
|
MD5 | 007c1b07f8b94d3734903e3c3ccb35cb |
|
BLAKE2b-256 | 08579e2e4aef900b56df6567d6715d205c4cfdc30001df33c8d41dfeddbc97c9 |
Hashes for confluence_cloud_python-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a97d3a33dd905053cad73e263512a97b300af2ef59524e80bca679961f8d07 |
|
MD5 | 0e799c1fad35899a80cec9caa32d23cc |
|
BLAKE2b-256 | d86ede51ebc943d99ee7334f5bdf8619ceaece8b415fdd06a133d6dc727c7944 |