yethee
Repos
36
Followers
19
Following
5

Events

Bump versions

Created at 1 day ago
delete branch
yethee delete branch php-di-7
Created at 3 days ago
issue comment
Removed dot-to-dash substitution in client_login

Добавил новый тег, 5.8.0

Спасибо!

Created at 3 days ago

Prepare release 5.8.0

Created at 3 days ago
yethee create tag 5.8.0
Created at 3 days ago

Add tests for #51

Disallow plugin php-http/discovery

Sync with the latest version API

Created at 3 days ago

Removed dot-to-dash substitution in client_login

нормализация client_login без доменной части

fix phpcs

Merge pull request #51 from Alexsisukin/fix_client_login

Removed dot-to-dash substitution in client_login

Created at 3 days ago
pull request closed
Removed dot-to-dash substitution in client_login

В директе доступны логины вида name@domain и при замене точки на тире получаем ошибку вида

Объект не найден: В HTTP-заголовке Client-Login указан несуществующий логин

Предлагаю оставить только strtolower

Created at 3 days ago
issue comment
Removed dot-to-dash substitution in client_login

Не, не нужно. Думаю, это связано с тем, что cs-fix запускался на PHP 7.4+

Created at 3 days ago
issue comment
Removed dot-to-dash substitution in client_login

Да, такое решение должно быть безопасным. В смысле, не поломает совместимость с V4. Возможно, можно вообще отказаться от нормализации в случае, когда указан email. Но если нет проблем при нормализации левой части, то можно оставить в таком варианте.

Выполни, пожалуйста, в терминале команду:

$ composer cs-fix

Чтобы все тесты в CI стали зелеными.

Created at 3 days ago
issue comment
Removed dot-to-dash substitution in client_login

Если убрать str_replace(), то ошибки нет?

Сейчас нормализация логина выполняется согласно требованиям Директа:

Внимание. Если логин пользователя содержит точки и символы верхнего регистра (заглавные буквы), то для получения нормализованного логина их следует заменить, соответственно, дефисами и символами нижнего регистра.

https://yandex.ru/dev/direct/doc/dg-v4/concepts/finance-token.html

Created at 3 days ago
pull request opened
Added support PHP-DI 7.0
Created at 3 days ago
create branch
yethee create branch php-di-7
Created at 3 days ago
Created at 3 days ago
yethee create tag 3.1.0
Created at 4 days ago

Bump slevomat/coding-standard to 8.9.1

Add rules for enums

Add rule SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator

Add rule SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing

Created at 4 days ago
yethee create tag 5.7.1
Created at 1 month ago

Prepare release 5.7.1

Created at 1 month ago
closed issue
Пример использования GetKeywordsRequest

Где можно посмотреть пример использования GetKeywordsRequest через библиотеку? и поддерживается ли этот метод, вижу что в версии live4 он еще доступен

Created at 1 month ago

Fix issue with backtracking at regex context

Created at 1 month ago
yethee create tag 5.7.0
Created at 1 month ago

Prepare release 5.7.0

Created at 1 month ago
closed issue
не работает Sandbox для отчетов

При установке в конфиге useSandbox для отчетов: $config = ConfigBuilder::create() ->useSandbox('true') ->setAccessToken('y0********') ->setClientLogin('********') ->setLocale('ru') ->getConfig();

Запрос идет на боевой сервер, что неудобно для разработки :(

Подправил функцию "createHttpRequest()" в файле "/src/Soap/ApiSoapClient.php"

===

private function createHttpRequest(Reports\ReportRequest $reportRequest): RequestInterface
    {        
        $endPoint = self::ENDPOINT;
        if ($this->config->useSandbox()) {
            $endPoint = str_replace('api.direct.yandex.', 'api-sandbox.direct.yandex.', $endPoint);
        }

        $request = $this->requestFactory->createRequest('POST', $endPoint)
            ->withHeader('Authorization', sprintf('Bearer %s', $this->config->getAccessToken()))
            .......

====

Возможно, хардкор. Поэтому патч делать не стал.

Created at 1 month ago

Sync with the latest version API

Fix typo

Add support the sandbox mode for service Reports

Close #50

Created at 1 month ago
issue comment
не работает Sandbox для отчетов

Пока не вижу более элегантного решения. А подобное изменение будет согласовано с решением в Biplane\YandexDirect\Soap\ApiSoapClient.

Позже, если будет найдено альтернативное решение, можно будет так же согласовано отрефакторить.

Created at 1 month ago
issue comment
Пример использования GetKeywordsRequest

Предполагаю, вопрос относится к Biplane\YandexDirect\Api\V5\Contract\GetKeywordsRequest. Если так, то этот класс относится к методу Keywords.get().


use Biplane\YandexDirect\ApiServiceFactory;
use Biplane\YandexDirect\Api\V5\Contract;
use Biplane\YandexDirect\Api\V5\Keywords;

$service = (new ApiServiceFactory())->createService(..., Keywords::class);

$request = Contract\GetKeywordsRequest::create()
    ->setSelectionCriteria(
        Contract\KeywordsSelectionCriteria::create()
            ->setIds([123, 124])
    )
    ->setFieldNames([
        Contract\KeywordFieldEnum::CAMPAIGN_ID,
        Contract\KeywordFieldEnum::ID,
        Contract\KeywordFieldEnum::KEYWORD,
        Contract\KeywordFieldEnum::STATE,
        Contract\KeywordFieldEnum::STATUS,
    ]);

$response = $service->get($request);
// $response an instance of Biplane\YandexDirect\Api\V5\Contract\GetKeywordsResponse
Created at 1 month ago
pull request opened
Add support for Symfony 6

Allows to install symfony/event-dispatcher 6.x

Created at 2 months ago
create branch
yethee create branch symfony6
Created at 2 months ago
Created at 2 months ago