curl -i -X POST " http://127.0.0.1:9080/add_number" -H " Host: example.com" -d ' {"number": "9911339329"}' -H ' Content-Type: application/json'
curl -i -X POST " http://127.0.0.1:9080/add_number_batch" -H " Host: example.com" -d ' 09011337323,09011337324,09011337325' -H ' Content-Type: application/json'
curl -i -X POST " http://127.0.0.1:9080/add_number_file" -H " Host: example.com" -F [email protected]
curl -i -X POST " http://127.0.0.1:9080/del_number" -H " Host: example.com" -d ' {"number": "9911339329"}' -H ' Content-Type: application/json'
curl -i -X POST " http://127.0.0.1:9080/del_number_batch" -H " Host: example.com" -d ' 09011337323,09011337324,09011337325' -H ' Content-Type: application/json'
curl -i -X POST " http://127.0.0.1:9080/del_number_file" -H " Host: example.com" -F [email protected]
curl -i -X POST " http://127.0.0.1:9080/manage_redis_numbers?type=normal" -H " Host: example.com" -H ' Content-Type: application/json' -d ' {"msisdn": "9011337323"}'
curl -i -X GET " http://127.0.0.1:9080/manage_redis_numbers?type=normal&msisdn=9011337323" -H " Host: example.com"
curl -i -X DELETE " http://127.0.0.1:9080/manage_redis_numbers?type=normal&msisdn=9011337323" -H " Host: example.com"
curl -i -X PUT " http://127.0.0.1:9080/manage_redis_numbers?type=normal" -H " Host: example.com" -H ' Content-Type: application/json' -d ' {"msisdn": "9011337323", "to": "E"}'
Set (add, edit) MSISDN File
curl -i -X POST " http://127.0.0.1:9080/manage_redis_numbers?type=file" -H " Host: example.com" -F [email protected]
curl -i -X GET " http://127.0.0.1:9080/manage_redis_numbers?type=file" -H " Host: example.com" -F [email protected]
curl -i -X DELETE " http://127.0.0.1:9080/manage_redis_numbers?type=file" -H " Host: example.com" -F [email protected]
Set (add, edit) MSISDN Batch
curl -i -X POST " http://127.0.0.1:9080/manage_redis_numbers?type=batch" -H " Host: example.com" -H ' Content-Type: application/json' -d ' {"9011337323": "H", "9011337324": "E", "9011337325": "H"}'
curl -i -X GET " http://127.0.0.1:9080/manage_redis_numbers?type=batch&msisdns=9011337323,9011337324,9011337325" -H " Host: example.com"
curl -i -X DELETE " http://127.0.0.1:9080/manage_redis_numbers?type=batch&msisdns=9011337323,9011337324,9011337325" -H " Host: example.com"