-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use API tokens instead of passwords; change JIRA to Jira; update docs… #176
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# JIRA REST API Client | ||
# Jira REST API Client | ||
|
||
[](http://travis-ci.org/chobie/jira-api-restclient) | ||
|
||
You all know that JIRA supports REST API, right? It can be very useful, for example, during automation job creation and notification sending. | ||
You all know that Jira supports REST API, right? It can be very useful, for example, during automation job creation and notification sending. | ||
|
||
This library will ensure unforgettable expirience when working with JIRA through REST API. Hope you'll enjoy it. | ||
This library will ensure unforgettable expirience when working with Jira through REST API. Hope you'll enjoy it. | ||
|
||
## Usage | ||
|
||
* JIRA Rest API Documents: https://docs.atlassian.com/jira/REST/latest/ | ||
* Jira REST API documentation: https://developer.atlassian.com/cloud/jira/platform/rest/ | ||
|
||
```php | ||
<?php | ||
|
@@ -18,7 +18,7 @@ use chobie\Jira\Issues\Walker; | |
|
||
$api = new Api( | ||
'https://your-jira-project.net', | ||
new Basic('yourname', 'password') | ||
new Basic('yourname', 'apitoken') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both
|
||
); | ||
|
||
$walker = new Walker($api); | ||
|
@@ -42,6 +42,11 @@ php composer.phar require chobie/jira-api-restclient ^2.0@dev | |
|
||
* [Composer](https://getcomposer.org/download/) | ||
|
||
## Authentication | ||
|
||
This client uses basic authentication on the Jira Cloud APIs. Basic authentication requests for Jira Cloud should use [API tokens](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) instead of Atlassian account passwords, as support for basic authentication with passwords has been [deprecated](https://community.developer.atlassian.com/t/announcement-deprecation-of-basic-authentication-with-passwords-and-cookie-based-authentication-in-jira-cloud-rest-apis/15687). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Usage of |
||
|
||
|
||
## License | ||
|
||
JIRA REST API Client is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details. | ||
Jira REST API Client is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this change, because in here it's library name, not Jira application itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change, because in here it's library name, not Jira application itself.