Skip to content
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

[feature] - add class ActivityRequeset #358

Open
Tracked by #385
badigit opened this issue Dec 19, 2023 · 0 comments
Open
Tracked by #385

[feature] - add class ActivityRequeset #358

badigit opened this issue Dec 19, 2023 · 0 comments
Assignees
Labels
2.x issue related with 2.x sdk version improve DX developer experience scope BIZPROC application scope bizproc

Comments

@badigit
Copy link

badigit commented Dec 19, 2023

При разработке активити - нужен бэкэнд обработчик, на который приходят запросы активити, с токенами.
Это похоже на то как работает класс PlacementRequest, только у активити чуть другая структура массива, где лежат токены

Наверное удобно было бы иметь класс который забирает токены от активити, и можно сразу выполнять под ними дальнейшую обработку\ответ..

{
    "workflow_id": "65808f8311b626.28237158",
    "code": "actNewInvoicePK",
    "document_id": [
        "crm",
        "Bitrix\\Crm\\Integration\\BizProc\\Document\\SmartInvoice",
        "SMART_INVOICE_49"
    ],
    "document_type": [
        "crm",
        "Bitrix\\Crm\\Integration\\BizProc\\Document\\SmartInvoice",
        "SMART_INVOICE"
    ],
    "event_token": "65808f8311b6.28237158|A96649_8593_66588_9419|0rPL1vdQLA5Oxn51m1rq2qR53P8sW.aaa40a72428e04d6f5b7cfc514e32c62f20d9c34d2dbdc5555953c43b748111",
    "properties": {
        "pay_amount": "1",
        "clientid": "245491",
        "orderid": "49",
        "service_name": "Оплата заказа  по договору ",
        "client_email": "111@ya.ru",
        "client_phone": "+7911111194917",
        "expiry": "",
        "testmode": "N",
        "pkAccount": "ip_s"
    },
    "use_subscription": "Y",
    "timeout_duration": "600",
    "ts": "1702924163",
    "auth": {
        "access_token": "2334606500698ace00001c2100000001000000a40d246f115180798e6e82b5dee39",
        "expires": "1702927763",
        "expires_in": "3600",
        "scope": "crm,pay_system,placement,catalog,user_brief,bizproc,im",
        "domain": "rus.bitrix24.ru",
        "server_endpoint": "https://oauth.bitrix.info/rest/",
        "status": "L",
        "client_endpoint": "https://rus.bitrix24.ru/rest/",
        "member_id": "6941ef20c21d20eb1f91857279",
        "user_id": "1",
        "refresh_token": "546450069801c2100000001000000d90c4667a0c40ce0c5a0194ad109a8e2",
        "application_token": "52cae45668fdc668fa7f994a71816"
    }
} 
``` го
@mesilov mesilov added 2.x issue related with 2.x sdk version improve DX developer experience labels Mar 13, 2024
@mesilov mesilov self-assigned this Mar 13, 2024
@mesilov mesilov changed the title [feature] - class ActivityRequeset [feature] - add class ActivityRequeset Apr 18, 2024
@mesilov mesilov added the scope BIZPROC application scope bizproc label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x issue related with 2.x sdk version improve DX developer experience scope BIZPROC application scope bizproc
Projects
None yet
Development

No branches or pull requests

2 participants