Russian  English  All projects

Configure regular uploading of data via api and sending commands to another api based on this data



1. It is necessary to configure the upload of api data every 10 minutes from the database of m2m devices (it is possible to upload to the google docs table).

This will be Table 1

Unloading is required by fields:

- Device Id
- IMEI device
- Sim card number of the device
- Lock status
-Tariff
- Date of blocking (or date of next write-off)
- Device registration date

2. In parallel, you will need to upload a list of our SIM cards from the operator via api to another table.

This will be **Table 2**

3. Next, you will need to compare the data in Table 1 with the previous version of the upload (what has changed):
- If the devices phone number has changed and the new and/or old number is present in Table 2, you will need to send
operator by api command to unlock the new and block the old SIM card
- If the status of the device was "blocked", and became "unlocked", and the phone number is in Table 2, then we send a request to the operator via api operator to unlock the SIM card
- If the status of the device was "unlocked", and became "blocked", and the phone number is in Table 2, then we send a request to block the SIM card via api operator
- If the device was not in the previous version of the table at all, and in the new one appeared, and the phone number is present in Table 2, then we send the operator a command via api to unlock the SIM card.
- If in the new version of the table the device disappeared completely (it was deleted), and the phone number was in table 2, then we send the operator a command to block the SIM card via api

1. Next, check the changes in Table 2:
- If the SIM card was last contacted 240 days ago, then we send a command to cancel it.

Here are the tasks (as we see them). We are ready to listen to your suggestions.
11.12.2022 13:26



 Answers freelancers