Title: Error using method 'timeman.close' · Issue #28 · akopdev/bitrix24-python-rest · GitHub
Open Graph Title: Error using method 'timeman.close' · Issue #28 · akopdev/bitrix24-python-rest
X Title: Error using method 'timeman.close' · Issue #28 · akopdev/bitrix24-python-rest
Description: Hello. I found a problem when using the 'timeman.close' method. Please help. If you use this method with 1 parameter like this: from bitrix24 import Bitrix24 bx24 = Bitrix24('https://******/rest/17/******/') bx24.callMethod('timeman.clos...
Open Graph Description: Hello. I found a problem when using the 'timeman.close' method. Please help. If you use this method with 1 parameter like this: from bitrix24 import Bitrix24 bx24 = Bitrix24('https://******/rest/17...
X Description: Hello. I found a problem when using the 'timeman.close' method. Please help. If you use this method with 1 parameter like this: from bitrix24 import Bitrix24 bx24 = Bitrix24('https://**...
Opengraph URL: https://github.com/akopdev/bitrix24-python-rest/issues/28
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error using method 'timeman.close'","articleBody":"Hello.\r\nI found a problem when using the 'timeman.close' method.\r\nPlease help. If you use this method with 1 parameter like this:\r\n\r\n```\r\nfrom bitrix24 import Bitrix24\r\nbx24 = Bitrix24('https://******/rest/17/******/')\r\nbx24.callMethod('timeman.close', {'USER_ID': 18})\r\n```\r\n\r\nThere is a result. Everything works.\r\nBut, if you use several parameters:\r\n\r\n`bx24.callMethod('timeman.close', {'USER_ID': 18, 'TIME': '2024-12-19T14:00:00+03:00', 'REPORT': 'test'})`\r\n\r\nThen it ends with the error 'bitrix24.exceptions.BitrixError: HTTP error: 400'\r\n(I can assume that the 'TIME' parameter is passed in the wrong format. There you can get the error 'Wrong datetime format'. But this is just my guess.)\r\nFrom my observations, I will also say that if you use 'requests', when passing all the same parameters, there are no errors.\r\n\r\n```\r\nimport requests\r\nurl = 'https://******/rest/17/******/timeman.close'\r\nrequests.post(url, {'USER_ID': 18, 'TIME': '2024-12-19T14:00:00+03:00', 'REPORT': 'test'})\r\n```\r\n\r\nIt works.\r\nThanks in advance!","author":{"url":"https://github.com/indexptz","@type":"Person","name":"indexptz"},"datePublished":"2024-12-19T11:07:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/bitrix24-python-rest/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d775daa3-4847-db6a-1d0d-42d7332b4256 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB90:391DC1:C43858:11B2092:6A4CC2F7 |
| html-safe-nonce | 94ba3319f96179acc01190399857dd3964e5629de80f3e6dc5843445b47c377b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjkwOjM5MURDMTpDNDM4NTg6MTFCMjA5Mjo2QTRDQzJGNyIsInZpc2l0b3JfaWQiOiIyMjUzMTI0NzY5OTI5ODA2NTgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2142e9f1d3afef49bacfb72bd88e231ebfc8acd4704bbefb0822a383d6dd2977 |
| hovercard-subject-tag | issue:2749968801 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/akopdev/bitrix24-python-rest/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94b32bfbaf4d0c2241dd1f031f3d19dec0752594ce9a0886d5a4203975f507a6/akopdev/bitrix24-python-rest/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94b32bfbaf4d0c2241dd1f031f3d19dec0752594ce9a0886d5a4203975f507a6/akopdev/bitrix24-python-rest/issues/28 |
| og:image:alt | Hello. I found a problem when using the 'timeman.close' method. Please help. If you use this method with 1 parameter like this: from bitrix24 import Bitrix24 bx24 = Bitrix24('https://******/rest/17... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | indexptz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/akopdev/bitrix24-python-rest git https://github.com/akopdev/bitrix24-python-rest.git |
| octolytics-dimension-user_id | 576134 |
| octolytics-dimension-user_login | akopdev |
| octolytics-dimension-repository_id | 210655670 |
| octolytics-dimension-repository_nwo | akopdev/bitrix24-python-rest |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 210655670 |
| octolytics-dimension-repository_network_root_nwo | akopdev/bitrix24-python-rest |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c03e7e569190bc89b638cdd4acb4b6c6b38a170a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width