{"id":323679,"date":"2021-05-24T15:01:22","date_gmt":"2021-05-24T15:01:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=323679"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=323679","title":{"rendered":"\u041a\u0430\u043a \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 Telegram | API Yoomoney Python"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 Telegram \u0431\u043e\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API Yoomoney.<\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 Telegram. \u0418 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0447\u0442\u043e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0431\u0435\u0437 \u0418\u041f \u0438 \u0432\u0441\u044f\u043a\u043e\u0439 \u044d\u0442\u043e\u0439 \u0434\u0432\u0438\u0436\u0443\u0445\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u0431\u044b\u043b \u043c\u0435\u0436\u0434\u0443 Qiwi \u0438 Yoomoney (\u0440\u0430\u043d\u044c\u0448\u0435 Yandex \u0414\u0435\u043d\u044c\u0433\u0438). \u0421\u0430\u043c \u044f \u0438\u0437 \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438&#8230; \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c &#171;\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439&#187; \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0431\u044b\u043b\u043e \u0443 Yoomoney.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"https:\/\/pypi.org\/project\/YooMoney\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 yoomoney <\/a>\u0434\u043b\u044f Python.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433, \u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/AlekseyKorshuk\/yoomoney-api\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041c\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e!<\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h3>\n<ul>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0447\u0435\u0442 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/h3>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f API Yoomoney \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p><strong>1.<\/strong>&nbsp;\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432&nbsp;\u043a\u043e\u0448\u0435\u043b\u0435\u043a \u042eMoney. \u0415\u0441\u043b\u0438 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043d\u0435\u0442,&nbsp;<a href=\"https:\/\/yoomoney.ru\/reg\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e<\/a>.<\/p>\n<p><strong>2.<\/strong>&nbsp;\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430&nbsp;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443&nbsp;<a href=\"https:\/\/yoomoney.ru\/myservices\/new\" rel=\"noopener noreferrer nofollow\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>.<\/p>\n<p><strong>3.<\/strong>&nbsp;\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p><strong>4.<\/strong>&nbsp;\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430&nbsp;\u043a\u043d\u043e\u043f\u043a\u0443&nbsp;<strong>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c<\/strong>.  <\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430&nbsp;<strong>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong>, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 (<em>client_id<\/em>) \u0438, \u0435\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043e\u043f\u0446\u0438\u044f, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (<em>client_secret<\/em>).  <\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>\u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c <em>client_id <\/em>\u0438<em> redirect_uri, <\/em>\u043e\u043d\u0438 \u043d\u0430\u043c \u0435\u0449\u0435 \u043d\u0443\u0436\u043d\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435: \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u0434. \u0421\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0432\u0441\u0435\u043c \u0448\u0430\u0433\u0430\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e <strong>pip&nbsp;install&nbsp;yoomoney<\/strong><\/p>\n<pre><code class=\"python\">from yoomoney import Authorize  Authorize(       client_id=\"YOUR_CLIENT_ID\",       redirect_uri=\"YOUR_REDIRECT_URI\",       scope=[\"account-info\",              \"operation-history\",              \"operation-details\",              \"incoming-transfers\",              \"payment-p2p\",              \"payment-shop\",              ]       )<\/code><\/pre>\n<p>\u0423\u0440\u0430! \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u0448 \u0442\u043e\u043a\u0435\u043d!<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/h3>\n<p>\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c <strong>YOUR_TOKEN <\/strong>\u043d\u0430 \u0432\u0430\u0448 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code class=\"python\">from yoomoney import Client token = \"YOUR_TOKEN\" client = Client(token) user = client.account_info() print(\"Account number:\", user.account) print(\"Account balance:\", user.balance) print(\"Account currency code in ISO 4217 format:\", user.currency) print(\"Account status:\", user.account_status) print(\"Account type:\", user.account_type) print(\"Extended balance information:\") for pair in vars(user.balance_details):     print(\"\\t--&gt;\", pair, \":\", vars(user.balance_details).get(pair)) print(\"Information about linked bank cards:\") cards = user.cards_linked if len(cards) != 0:     for card in cards:         print(card.pan_fragment, \" - \", card.type) else:     print(\"No card is linked to the account\")<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<pre><code class=\"python\">Account number: 410019014512803 Account balance: 999999999999.99 Account currency code in ISO 4217 format: 643 Account status: identified Account type: personal Extended balance information:    --&gt; total : 999999999999.99    --&gt; available : 999999999999.99    --&gt; deposition_pending : None    --&gt; blocked : None    --&gt; debt : None    --&gt; hold : None Information about linked bank cards: No card is linked to the account<\/code><\/pre>\n<p>\u0421\u0443\u043f\u0435\u0440! \u0422\u043e\u043a\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<h3>\u041a\u0430\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0447\u0435\u0442 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443<\/h3>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>Quickpay.<\/strong><\/p>\n<pre><code class=\"python\">from yoomoney import Quickpay quickpay = Quickpay(             receiver=\"410019014512803\",             quickpay_form=\"shop\",             targets=\"Sponsor this project\",             paymentType=\"SB\",             sum=150,             ) print(quickpay.base_url) print(quickpay.redirected_url)<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0432\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<pre><code class=\"python\">https:\/\/yoomoney.ru\/quickpay\/confirm.xml?receiver=410019014512803&amp;quickpay-form=shop&amp;targets=Sponsor%20this%20project&amp;paymentType=SB&amp;sum=150 https:\/\/yoomoney.ru\/transfer\/quickpay?requestId=343532353937313933395f66326561316639656131626539326632616434376662373665613831373636393537613336383639<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0432\u0442\u043e\u0440\u043e\u0439. \u041e\u0431\u0435 \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0444\u043e\u0440\u043c\u0443. \u041d\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e9b\/22c\/070\/e9b22c070b30b7e43ba1b445cbb67bf8.png\" alt=\"\u0424\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b\" title=\"\u0424\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b\" width=\"1416\" height=\"897\"><figcaption>\u0424\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/figcaption><\/figure>\n<p>\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043a\u0430\u0440\u0442\u043e\u0439, \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u043f\u0440\u043e\u0441: \u041a\u0430\u043a \u043d\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u043f\u043b\u0430\u0442\u0438\u043b \u0441\u0447\u0435\u0442?<br \/>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u043e\u0440\u043c <strong>label<\/strong> &#8212; \u043c\u0435\u0442\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0430\u0439\u0442 \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0442\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0438\u043b\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u043a\u0430\u0437\u0430. <\/p>\n<p>\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">from yoomoney import Quickpay quickpay = Quickpay(             receiver=\"410019014512803\",             quickpay_form=\"shop\",             targets=\"Sponsor this project\",             paymentType=\"SB\",             sum=150,             lebel=\"a1b2c3d4e5\"             ) print(quickpay.base_url) print(quickpay.redirected_url)<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0442\u0443.<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/h3>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>Client<\/strong>.<\/p>\n<p>\u0417\u043d\u0430\u044f <strong>label <\/strong>\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0436\u0435\u043c <strong>label <\/strong>\u0432 <em>client.operation_history():<\/em><\/p>\n<pre><code class=\"python\">from yoomoney import Client token = \"YOUR_TOKEN\" client = Client(token) history = client.operation_history(label=\"a1b2c3d4e5\") print(\"List of operations:\") print(\"Next page starts with: \", history.next_record) for operation in history.operations:     print()     print(\"Operation:\",operation.operation_id)     print(\"\\tStatus     --&gt;\", operation.status)     print(\"\\tDatetime   --&gt;\", operation.datetime)     print(\"\\tTitle      --&gt;\", operation.title)     print(\"\\tPattern id --&gt;\", operation.pattern_id)     print(\"\\tDirection  --&gt;\", operation.direction)     print(\"\\tAmount     --&gt;\", operation.amount)     print(\"\\tLabel      --&gt;\", operation.label)     print(\"\\tType       --&gt;\", operation.type)<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u0444\u0438\u043b\u044c\u0442\u0440\u0443:<\/p>\n<pre><code class=\"python\">List of operations: Next page starts with:  None Operation: 670278348725002105   Status     --&gt; success   Datetime   --&gt; 2021-10-10 10:10:10   Title      --&gt; \u041f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b ****4487   Pattern id --&gt; None   Direction  --&gt; in   Amount     --&gt; 150.0   Label      --&gt; a1b2c3d4e5   Type       --&gt; deposition<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043f\u0440\u043e\u0448\u043b\u0430 \u043b\u0438 \u043e\u043f\u043b\u0430\u0442\u0430.<\/p>\n<p>\u0412\u0441\u0451! \u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433, \u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/AlekseyKorshuk\/yoomoney-api\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041c\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e!<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/558924\/\"> https:\/\/habr.com\/ru\/post\/558924\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0432 Telegram \u0431\u043e\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API Yoomoney.<\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0430\u0433\u0430\u0437\u0438\u043d \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 Telegram. \u0418 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0447\u0442\u043e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0431\u0435\u0437 \u0418\u041f \u0438 \u0432\u0441\u044f\u043a\u043e\u0439 \u044d\u0442\u043e\u0439 \u0434\u0432\u0438\u0436\u0443\u0445\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u0431\u044b\u043b \u043c\u0435\u0436\u0434\u0443 Qiwi \u0438 Yoomoney (\u0440\u0430\u043d\u044c\u0448\u0435 Yandex \u0414\u0435\u043d\u044c\u0433\u0438). \u0421\u0430\u043c \u044f \u0438\u0437 \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438&#8230; \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c &#171;\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439&#187; \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0431\u044b\u043b\u043e \u0443 Yoomoney.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"https:\/\/pypi.org\/project\/YooMoney\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 yoomoney <\/a>\u0434\u043b\u044f Python.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433, \u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/AlekseyKorshuk\/yoomoney-api\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041c\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e!<\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h3>\n<ul>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0447\u0435\u0442 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/h3>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f API Yoomoney \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p><strong>1.<\/strong>&nbsp;\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432&nbsp;\u043a\u043e\u0448\u0435\u043b\u0435\u043a \u042eMoney. \u0415\u0441\u043b\u0438 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043d\u0435\u0442,&nbsp;<a href=\"https:\/\/yoomoney.ru\/reg\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e<\/a>.<\/p>\n<p><strong>2.<\/strong>&nbsp;\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430&nbsp;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443&nbsp;<a href=\"https:\/\/yoomoney.ru\/myservices\/new\" rel=\"noopener noreferrer nofollow\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>.<\/p>\n<p><strong>3.<\/strong>&nbsp;\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p><strong>4.<\/strong>&nbsp;\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430&nbsp;\u043a\u043d\u043e\u043f\u043a\u0443&nbsp;<strong>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c<\/strong>.  <\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430&nbsp;<strong>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong>, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0435\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 (<em>client_id<\/em>) \u0438, \u0435\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043e\u043f\u0446\u0438\u044f, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (<em>client_secret<\/em>).  <\/p>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>\u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c <em>client_id <\/em>\u0438<em> redirect_uri, <\/em>\u043e\u043d\u0438 \u043d\u0430\u043c \u0435\u0449\u0435 \u043d\u0443\u0436\u043d\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435: \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0441\u0432\u043e\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u0434. \u0421\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0432\u0441\u0435\u043c \u0448\u0430\u0433\u0430\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e <strong>pip&nbsp;install&nbsp;yoomoney<\/strong><\/p>\n<pre><code class=\"python\">from yoomoney import Authorize  Authorize(       client_id=\"YOUR_CLIENT_ID\",       redirect_uri=\"YOUR_REDIRECT_URI\",       scope=[\"account-info\",              \"operation-history\",              \"operation-details\",              \"incoming-transfers\",              \"payment-p2p\",              \"payment-shop\",              ]       )<\/code><\/pre>\n<p>\u0423\u0440\u0430! \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u0448 \u0442\u043e\u043a\u0435\u043d!<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u043e\u043a\u0435\u043d<\/h3>\n<p>\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c <strong>YOUR_TOKEN <\/strong>\u043d\u0430 \u0432\u0430\u0448 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code class=\"python\">from yoomoney import Client token = \"YOUR_TOKEN\" client = Client(token) user = client.account_info() print(\"Account number:\", user.account) print(\"Account balance:\", user.balance) print(\"Account currency code in ISO 4217 format:\", user.currency) print(\"Account status:\", user.account_status) print(\"Account type:\", user.account_type) print(\"Extended balance information:\") for pair in vars(user.balance_details):     print(\"\\t--&gt;\", pair, \":\", vars(user.balance_details).get(pair)) print(\"Information about linked bank cards:\") cards = user.cards_linked if len(cards) != 0:     for card in cards:         print(card.pan_fragment, \" - \", card.type) else:     print(\"No card is linked to the account\")<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<pre><code class=\"python\">Account number: 410019014512803 Account balance: 999999999999.99 Account currency code in ISO 4217 format: 643 Account status: identified Account type: personal Extended balance information:    --&gt; total : 999999999999.99    --&gt; available : 999999999999.99    --&gt; deposition_pending : None    --&gt; blocked : None    --&gt; debt : None    --&gt; hold : None Information about linked bank cards: No card is linked to the account<\/code><\/pre>\n<p>\u0421\u0443\u043f\u0435\u0440! \u0422\u043e\u043a\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<h3>\u041a\u0430\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0447\u0435\u0442 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443<\/h3>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>Quickpay.<\/strong><\/p>\n<pre><code class=\"python\">from yoomoney import Quickpay quickpay = Quickpay(             receiver=\"410019014512803\",             quickpay_form=\"shop\",             targets=\"Sponsor this project\",             paymentType=\"SB\",             sum=150,             ) print(quickpay.base_url) print(quickpay.redirected_url)<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0432\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<pre><code class=\"python\">https:\/\/yoomoney.ru\/quickpay\/confirm.xml?receiver=410019014512803&amp;quickpay-form=shop&amp;targets=Sponsor%20this%20project&amp;paymentType=SB&amp;sum=150 https:\/\/yoomoney.ru\/transfer\/quickpay?requestId=343532353937313933395f66326561316639656131626539326632616434376662373665613831373636393537613336383639<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0432\u0442\u043e\u0440\u043e\u0439. \u041e\u0431\u0435 \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0444\u043e\u0440\u043c\u0443. \u041d\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b.<\/p>\n<figure class=\"\"><figcaption>\u0424\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/figcaption><\/figure>\n<p>\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043a\u0430\u0440\u0442\u043e\u0439, \u043b\u0438\u0431\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u043f\u0440\u043e\u0441: \u041a\u0430\u043a \u043d\u0430\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u043f\u043b\u0430\u0442\u0438\u043b \u0441\u0447\u0435\u0442?<br \/>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u043e\u0440\u043c <strong>label<\/strong> &#8212; \u043c\u0435\u0442\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0430\u0439\u0442 \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0442\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0438\u043b\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u043a\u0430\u0437\u0430. <\/p>\n<p>\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">from yoomoney import Quickpay quickpay = Quickpay(             receiver=\"410019014512803\",             quickpay_form=\"shop\",             targets=\"Sponsor this project\",             paymentType=\"SB\",             sum=150,             lebel=\"a1b2c3d4e5\"             ) print(quickpay.base_url) print(quickpay.redirected_url)<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0442\u0443.<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u043f\u043b\u0430\u0442\u044b<\/h3>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c <strong>Client<\/strong>.<\/p>\n<p>\u0417\u043d\u0430\u044f <strong>label <\/strong>\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0436\u0435\u043c <strong>label <\/strong>\u0432 <em>client.operation_history():<\/em><\/p>\n<pre><code class=\"python\">from yoomoney import Client token = \"YOUR_TOKEN\" client = Client(token) history = client.operation_history(label=\"a1b2c3d4e5\") print(\"List of operations:\") print(\"Next page starts with: \", history.next_record) for operation in history.operations:     print()     print(\"Operation:\",operation.operation_id)     print(\"\\tStatus     --&gt;\", operation.status)     print(\"\\tDatetime   --&gt;\", operation.datetime)     print(\"\\tTitle      --&gt;\", operation.title)     print(\"\\tPattern id --&gt;\", operation.pattern_id)     print(\"\\tDirection  --&gt;\", operation.direction)     print(\"\\tAmount     --&gt;\", operation.amount)     print(\"\\tLabel      --&gt;\", operation.label)     print(\"\\tType       --&gt;\", operation.type)<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u0444\u0438\u043b\u044c\u0442\u0440\u0443:<\/p>\n<pre><code class=\"python\">List of operations: Next page starts with:  None Operation: 670278348725002105   Status     --&gt; success   Datetime   --&gt; 2021-10-10 10:10:10   Title      --&gt; \u041f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441 \u043a\u0430\u0440\u0442\u044b ****4487   Pattern id --&gt; None   Direction  --&gt; in   Amount     --&gt; 150.0   Label      --&gt; a1b2c3d4e5   Type       --&gt; deposition<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043f\u0440\u043e\u0448\u043b\u0430 \u043b\u0438 \u043e\u043f\u043b\u0430\u0442\u0430.<\/p>\n<p>\u0412\u0441\u0451! \u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433, \u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/AlekseyKorshuk\/yoomoney-api\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041c\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e!<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/558924\/\"> https:\/\/habr.com\/ru\/post\/558924\/<\/a><br \/><\/br><\/br><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-323679","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323679"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/323679\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}