Some useful APIs which made it easier to buy cars from BahmanMotor (Iranecar).
This script can find direct access link to the form using circulation data. I suggest setting a corn-job to run this script at VERY FIRST MOMENT of registration process and use its result to have a faster registration.
Note: Setting of this script can be find in config.php
botToken
Telegram Bot API tokenchannel
Telegram Chat ID to get links and messagescarId
Car ID to get links for (use below table)
# | Name |
---|---|
55 | B30 |
93 | Kara Dual Cabin |
94 | Kara Single Cabin |
96 | Dignity |
100 | Fidelity |
104 | Capra 4DW |
106 | EmPower |
You can also use the ID Finder script to expand your list. |
typeId
Some cars have different types or trims (like Dignity/Fidelity), and you should select it using this variable (Use below table)
Car | Types | Code |
---|---|---|
Dignity | Trim: Red, Black | SOON |
Fidelity | Seats: 5, 7 | 127 , 128 |
optionCode
Customers can select multiple options for some cars (like Fidelity's wheel rings)
Car | Description | Code |
---|---|---|
Fidelity | Rings: 20-11 (Sport one), 20-12 (5 Par) | 3400 , 3500 |
We use this script to understand car ids and find new cars before their official registration.
Set a cron-job for every 6-hour to check data.
Simulated form of each registration is available at test-forms/
directory.
new.php
Tested at 1400/12/17 and works properly.old.php
Old Iranecar version. This file is invalid after 1400/10
Are you stuck in the validation process? Just give your queueId
and orderId
to this script. It will keep sending request to the CheckResult
endpoint until get payment link. (This script never stops working. needs manually terminate using Ctrl+C
)
This script checks Bahman's home items and notifies you when home something is available to buy.
Example Usages:
- Finding test circulations
- Get notified when circulation published at sell days (example: sometimes they publish circulations at 10:03 instead of 10:00; and we can't refresh the website every 30 seconds)