alexkovalevych / jira-api
Jira api php library
Installs: 3 388
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 3
Open Issues: 2
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~4.0|~5.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is not auto-updated.
Last update: 2024-11-19 08:20:53 UTC
README
Usage
Create a client providing your jira api url
, username
and password
:
$client = new IssueClient('https://myproject.atlassian.com/rest/api/latest', 'login', 'password');
Now you're able to run api requests with that client:
$issue = json_decode($client->get($issueId))->getBody()->getContents());
And don't forget about error handling (check guzzle documentation about more information):
try { $response = $client->getIssue($issueId); } catch (RequestException $e) { ... }
Supported clients
- Issue
- Workflow
- Project
TODO
- Cover more api endpoints