-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed error with file not found * Corrected documentation text and reference.
- Loading branch information
1 parent
31b6a2f
commit 787f3be
Showing
4 changed files
with
56 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,31 +106,31 @@ Example usage: | |
|
||
For example 1:: | ||
|
||
from jiraone import LOGIN, endpoint | ||
from jiraone import LOGIN, endpoint | ||
|
||
# previous login | ||
LOGIN.session.headers = LOGIN.headers | ||
LOGIN.session.auth = LOGIN.auth_request | ||
response = LOGIN.session.get(endpoint.myself()) | ||
print(response.status_code) | ||
# <Response 200> | ||
# previous login | ||
LOGIN.session.headers = LOGIN.headers | ||
LOGIN.session.auth = LOGIN.auth_request | ||
response = LOGIN.session.get(endpoint.myself()) | ||
print(response.status_code) | ||
# <Response 200> | ||
|
||
If you want to use a self-signed certificate. You can set a path to the certificate or do not verify it. | ||
|
||
For example 2:: | ||
|
||
from jiraone import LOGIN, endpoint | ||
from jiraone import LOGIN, endpoint | ||
|
||
# previous login | ||
LOGIN.session.headers = LOGIN.headers | ||
LOGIN.session.auth = LOGIN.auth_request | ||
# not verifying SSL cert | ||
LOGIN.session.verify = False | ||
# setting a path to the certificate | ||
LOGIN.session.verify = "your_cert_path" | ||
response = LOGIN.session.get(endpoint.myself()) | ||
print(response.status_code) | ||
# <Response 200> | ||
# previous login | ||
LOGIN.session.headers = LOGIN.headers | ||
LOGIN.session.auth = LOGIN.auth_request | ||
# not verifying SSL cert | ||
LOGIN.session.verify = False | ||
# setting a path to the certificate | ||
LOGIN.session.verify = "your_cert_path" | ||
response = LOGIN.session.get(endpoint.myself()) | ||
print(response.status_code) | ||
# <Response 200> | ||
|
||
|
||
**Attributes**, available to the :ref:`login` alias | ||
|
@@ -651,13 +651,22 @@ You can be able to call various methods by altering the ``method`` keyword argum | |
* ``GET`` request: Returns information about a single Atlassian account by ID by using a "GET" request. | ||
|
||
* ``PATCH`` request: Updates fields in a user account. | ||
|
||
* Body parameter | ||
|
||
* Any or all user object this is value | ||
|
||
For example:: | ||
|
||
e.g. {"name": "Lila User", "nickname": "marshmallow"} | ||
|
||
* ``PUT`` request: Sets the specified user's email address. | ||
|
||
* Body parameter | ||
e.g. {"email": "[email protected]"} | ||
|
||
For example:: | ||
|
||
e.g. {"email": "[email protected]"} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters