Comments (2)
curl with my token is successful
- curl -H "Authorization: " <https:///rest/api/content
{"results":[ - curl -H "Authorization: " https:///rest/api/content/369271800/descendant/attachment
{"results":[{"id":"516876237",
from atlassian-python-api.
Solved using different authentication. requirements.txt below
import requests
from atlassian import Confluence
def main() -> None:
confluence: Confluence
s = requests.Session()
s.headers['Authorization'] = 'Bearer <token>'
confluence = Confluence(url="<base url>", session=s)
pg = confluence.get_page_by_id(page_id="369271800")
print("bye")
if name == 'main':
main()
pip list
Package Version
atlassian-python-api 3.41.11
beautifulsoup4 4.12.3
certifi 2024.2.2
charset-normalizer 3.3.2
Deprecated 1.2.14
idna 3.6
jmespath 1.0.1
oauthlib 3.2.2
packaging 24.0
pip 24.0
python-certifi-win32 1.6.1 #I'm on windows
requests 2.31.0
requests-oauthlib 2.0.0
setuptools 68.2.0
setuptools-scm 8.0.4
six 1.16.0
soupsieve 2.5
typing_extensions 4.11.0
urllib3 2.2.1
wheel 0.41.2
wrapt 1.16.0
from atlassian-python-api.
Related Issues (20)
- need a function to set the test status in in test execution HOT 1
- Confluence Cloud Python API connection Timeouts
- Jira Software - rank API available? HOT 1
- [Jira] get_issue_changelog broken? HOT 2
- unexpected keyword argument 'paging_workaround' HOT 6
- Insight (Assets) class not correctly setting self.default_headers when cloud=True HOT 1
- [Confluence] Attachments - get_attachments_from_content HOT 1
- Bad Request for pullrequests with page params HOT 1
- bitbucket.project_list() only returns generators HOT 3
- Export page not working HOT 1
- Add label parameter to get_all_spaces method HOT 2
- pylint missing from requirements-dev.txt
- Edit issue not respect documentation
- Reading large confluence page
- export_page is giving 404 error
- Grammar and URL error on get_page_id
- black formatting in multiple versions of python HOT 3
- New release HOT 2
- confluence.add_user_to_group is wrong
- [Jira] "Agile" methods don't use the “api_root” instance attribute, as most other methods do
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlassian-python-api.