### Example Cron Job Configuration with wget Source: https://premium.gitbook.io/main/osnovnye-nastroiki/faq/kak-sozdat-zadanie-cron-na-servere This snippet provides an example of a cron job task that uses `wget` to download data from a specified URL. It includes options for retries and output redirection. ```shell /usr/bin/wget -t 1 -O - --no-check-certificate \"https://site.com/cron-bestchangeapi_upload_data.html\" ``` -------------------------------- ### Install Electrum Module Source: https://premium.gitbook.io/rukovodstvo-polzovatelya/osnovnye-nastroiki/modul-electrum/ustanovka-i-nastroika-electrum Executes the installation script for the Electrum module on the server. This command should be run in the terminal after accessing the server environment. ```bash bash install_electrum.sh ``` -------------------------------- ### Install Electrum Dependencies on Ubuntu Server Source: https://premium.gitbook.io/main/main/llms-full.txt/1 Installs necessary libraries (libsecp256k1-0 and python3-cryptography) on an Ubuntu server for the Electrum module. This is a prerequisite for enabling mass Bitcoin payouts. ```bash sudo apt-get install libsecp256k1-0 python3-cryptography -y ``` -------------------------------- ### Cron Job with Sequential Delayed Execution Source: https://premium.gitbook.io/rukovodstvo-polzovatelya/osnovnye-nastroiki/faq/kak-sozdat-zadanie-cron-na-servere This example illustrates setting up multiple delayed tasks. The first task runs immediately, the second runs after a 20-second delay, and subsequent tasks would run with increasing delays. This method allows for more frequent execution of the same base command. ```bash /usr/bin/wget -t 1 -O - --no-check-certificate "https://site.com/cron-bestchangeapi_upload_data.html" sleep 20 && /usr/bin/wget -t 1 -O - --no-check-certificate "https://site.com/cron-bestchangeapi_upload_data.html" ``` -------------------------------- ### GET /affiliate/transitions Source: https://premium.gitbook.io/main/api-premium-exchanger/api-v1 Retrieves a list of affiliate transitions with optional filters for time ranges, IP addresses, and result limits. ```APIDOC ## GET /affiliate/transitions ### Description Fetch a list of affiliate transitions. Use query parameters to filter the results by time, IP, or quantity. ### Method GET ### Endpoint /affiliate/transitions ### Parameters #### Query Parameters - **start_time** (integer) - Optional - Unix timestamp to start filtering from. - **end_time** (integer) - Optional - Unix timestamp to filter up to. - **ip** (string) - Optional - Filter by specific IP address. - **limit** (integer) - Optional - Maximum number of items to return. ### Request Example GET /affiliate/transitions?limit=10&ip=192.168.1.1 ### Response #### Success Response (200) - **items** (array) - List of affiliate transitions. - **time** (string) - Time of the transition. - **date** (string) - Date of the transition. - **browser** (string) - Browser used by the user. - **ip** (string) - IP address of the user. #### Response Example { "items": [ { "time": "14:30:00", "date": "2023-10-27", "browser": "Chrome", "ip": "192.168.1.1" } ] } ``` -------------------------------- ### Display PHP Information via PHP Script Source: https://premium.gitbook.io/main/osnovnye-nastroiki/faq/kak-proverit-versiyu-php-ustanovlennuyu-na-servere This snippet demonstrates how to create a PHP file that, when accessed via a web browser, will display detailed information about the PHP environment, including the version. This is useful for debugging and understanding server configurations. It requires FTP or SSH access to upload the file to the website's root directory. ```php ``` -------------------------------- ### GET /get_partner_exchanges Source: https://premium.gitbook.io/main/api-premium-exchanger/api-v1 Retrieves information about partner exchanges. ```APIDOC ## GET /get_partner_exchanges ### Description Retrieves information about partner exchanges. ### Method GET ### Endpoint /get_partner_exchanges ### Parameters #### Query Parameters - **None** ### Request Example ```json {} ``` ### Response #### Success Response (200) - **data** (object) - Information about partner exchanges. #### Response Example ```json { "data": { "message": "Information about partner exchanges" } } ``` ```