Code Monkey home page Code Monkey logo

Comments (2)

chkp-sgrimes avatar chkp-sgrimes commented on June 24, 2024

curl with my token is successful

  1. curl -H "Authorization: " <https:///rest/api/content
    {"results":[
  2. curl -H "Authorization: " https:///rest/api/content/369271800/descendant/attachment
    {"results":[{"id":"516876237",

from atlassian-python-api.

chkp-sgrimes avatar chkp-sgrimes commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.