Package: rocketpay
RocketPay ClientThis API based on@tonRocketBot(@ton_rocket_test_botfor testnest) Payment System. In order to use it, you need to get API key from bot. Open it and go to Rocket Pay > Create App > API token.API token must be specified in header of each request. Header name isRocket-Pay-Key. Only exception is /version endpointThis Python package is automatically generated by theSwagger Codegenproject:API version: 1.3Package version: 1.0.0Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importrocketpaySetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importrocketpayGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportrocketpayfromrocketpay.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: api-keyconfiguration=rocketpay.Configuration()# Uncomment below to setup testnet# configuration.is_testnet = Trueconfiguration.api_key['Rocket-Pay-Key']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Rocket-Pay-Key'] = 'Bearer'# create an instance of the API classapi_instance=rocketpay.AppApi(rocketpay.ApiClient(configuration))try:# Returns information about your applicationapi_response=api_instance.apps_controller_get_app_info()pprint(api_response)exceptApiExceptionase:print("Exception when calling AppApi->apps_controller_get_app_info:%s\n"%e)# Configure API key authorization: api-keyconfiguration=rocketpay.Configuration()configuration.api_key['Rocket-Pay-Key']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Rocket-Pay-Key'] = 'Bearer'# create an instance of the API classapi_instance=rocketpay.AppApi(rocketpay.ApiClient(configuration))body=rocketpay.CreateTransferDto()# CreateTransferDto |try:# Make transfer of funds to another userapi_response=api_instance.apps_controller_transfer(body)pprint(api_response)exceptApiExceptionase:print("Exception when calling AppApi->apps_controller_transfer:%s\n"%e)# Configure API key authorization: api-keyconfiguration=rocketpay.Configuration()configuration.api_key['Rocket-Pay-Key']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Rocket-Pay-Key'] = 'Bearer'# create an instance of the API classapi_instance=rocketpay.AppApi(rocketpay.ApiClient(configuration))body=rocketpay.CreateWithdrawalDto()# CreateWithdrawalDto |try:# Make withdrawal of funds to external walletapi_response=api_instance.apps_controller_withdrawal(body)pprint(api_response)exceptApiExceptionase:print("Exception when calling AppApi->apps_controller_withdrawal:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://pay.ton-rocket.com/ClassMethodHTTP requestDescriptionAppApiapps_controller_get_app_infoGET/app/infoReturns information about your applicationAppApiapps_controller_transferPOST/app/transferMake transfer of funds to another userAppApiapps_controller_withdrawalPOST/app/withdrawalMake withdrawal of funds to external walletCurrenciesApicurrencies_controller_get_coinsGET/currencies/availableReturns available currenciesCurrenciesApicurrencies_controller_get_ratesGET/currencies/rateReturns rates from simple simple-orderMultiChequesApicheques_controller_create_chequePOST/multi-chequesCreate multi-chequeMultiChequesApicheques_controller_delete_chequeDELETE/multi-cheques/{id}Delete multi-chequeMultiChequesApicheques_controller_edit_chequePUT/multi-cheques/{id}Edit multi-chequeMultiChequesApicheques_controller_get_chequeGET/multi-cheques/{id}Get multi-cheque infoMultiChequesApicheques_controller_get_chequesGET/multi-chequesGet list of multi-chequesSubscriptionsApisubscriptions_controller_check_subscriptionPOST/subscriptions/check/{subscriptionId}SubscriptionsApisubscriptions_controller_create_subscriptionPOST/subscriptionsCreate subscriptionSubscriptionsApisubscriptions_controller_crete_subscription_intervalPOST/subscriptions/{subscriptionId}/intervalCreate subscription intervalSubscriptionsApisubscriptions_controller_delete_subscriptionDELETE/subscriptions/{subscriptionId}Delete subscriptionSubscriptionsApisubscriptions_controller_delete_subscription_intervalDELETE/subscriptions/{subscriptionId}/interval/{intervalCode}Delete subscription intervalSubscriptionsApisubscriptions_controller_edit_subscription_intervalPUT/subscriptions/{subscriptionId}/interval/{intervalCode}Edit subscription intervalSubscriptionsApisubscriptions_controller_get_subscriptionGET/subscriptions/{subscriptionId}Get subscription infoSubscriptionsApisubscriptions_controller_get_subscription_intervalGET/subscriptions/{subscriptionId}/interval/{intervalCode}Get subscription interval infoSubscriptionsApisubscriptions_controller_get_subscriptionsGET/subscriptionsGet list of subscriptionTgInvoicesApiinvoices_controller_create_invoicePOST/tg-invoicesCreate invoiceTgInvoicesApiinvoices_controller_delete_invoiceDELETE/tg-invoices/{id}Delete invoiceTgInvoicesApiinvoices_controller_get_invoiceGET/tg-invoices/{id}Get invoice infoTgInvoicesApiinvoices_controller_get_invoicesGET/tg-invoicesGet list of invoicesVersionApiversion_controller_get_versionGET/versionReturns current version of API. You may use it as healthcheckDocumentation For ModelsAllOfChequeDisabledLanguagesAllOfCoinDtoFeeWithdrawAllOfPayInvoiceDtoPaymentAllOfShortChequeDtoDisabledLanguagesAllOfSubscriptionIntervalAllOfSubscriptionTgResourceApiBadRequestErrorApiErrorAppAppBalanceAppDtoAvailableCoinsAvailableCoinsDataCheckSubscriptionDtoChequeCoinDtoCreateChequeDtoCreateInvoiceDtoCreateSubscriptionDtoCreateTransferDtoCreateWithdrawalDtoDeleteResponseDtoEditSubscriptionIntervalDtoFullInvoiceDtoFullInvoiceResponseDtoInvoicePaginatedInvoiceResponsePaginatedShortChequeDtoResponsePaginatedSubscriptionResponsePaginationDtoPayInvoiceDtoPayInvoiceStatDtoPropertyErrorRatesResponseDtoSetShortChequeDtoSimpleChequeResponseSimpleFullInvoiceDtoResponseSimpleInvoiceResponseSimpleShortChequeDtoResponseSimpleSubscriptionIntervalResponseSimpleSubscriptionResponseSimpleTransferDtoResponseSimpleUserSubscriptionResponseSimpleWithdrawalDtoResponseSubscriptionSubscriptionIntervalSubscriptionIntervalDtoSubscriptionResourceTgResourceTransferDtoUpdateChequeDtoUserSubscriptionUserSubscriptionTransactionVersionWebhookDtoWithdrawFeeDtoWithdrawalDtoDocumentation For Authorizationapi-keyType: API keyAPI key parameter name: Rocket-Pay-KeyLocation: HTTP headerAuthorAleksandr ShepelevReinier Hernández