Sinar / popit_relationship

This is a POC to feed our popit database to graph software, Currently on networkx and neo4j
9 stars 5 forks source link

Option for authenticated sessions in configuration #39

Open kaerumy opened 4 years ago

kaerumy commented 4 years ago

https://plonerestapi.readthedocs.io/en/latest/authentication.html

import requests

session = requests.Session()
session.auth = ('username', 'password')
session.headers.update({'Accept': 'application/json'})
Jeffrey04 commented 4 years ago

got it, will work on it within the week

Jeffrey04 commented 3 years ago

merged but i realized i forgot to update the doc