Skip to content

RomanSkobenkov/yandex-tracker-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yandex-tracker-api

Установка

composer require yandex-tracker-api/yandex-tracker-api

Добавьте autoload (ну вы в курсе)

Если вы ларавелолюб (одобряю), то добавьте в config/app.php класс YandexTrackerApi\YandexTrackerApi\YandexTrackerApiServiceProvider.

Настройки

Создать .env, подсмотрев настройки в .env.example

Юзаем

Создание задачки

<?php
require 'vendor/autoload.php';

use YandexTrackerApi\YandexTrackerApi\Issue\IssueService;
use YandexTrackerApi\YandexTrackerApi\Issue\Issue;

$issue = new Issue();

$issue->setQueue('Intensa')->setSummary('One love');

$issueService = new IssueService();

try {
    $issue = $issueService->createIssue($issue);
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
    print('Ошибочка! ' . $e->getMessage());
}

Можно сделать ещё что-то, но некогда объяснять ))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published