https://github.com/jms/check-phone-number-service
microservice to check phone numbers using libphonenumber and the python port python-phonenumbers
https://github.com/jms/check-phone-number-service
Last synced: 4 months ago
JSON representation
microservice to check phone numbers using libphonenumber and the python port python-phonenumbers
- Host: GitHub
- URL: https://github.com/jms/check-phone-number-service
- Owner: jms
- License: mit
- Created: 2015-06-07T17:02:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T15:35:44.000Z (about 10 years ago)
- Last Synced: 2025-07-27T12:41:16.480Z (11 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check-phone-number-service [](https://travis-ci.org/jms/check-phone-number-service)
microservice to check phone numbers using libphonenumber and the python port python-phonenumbers
Test data
```json
{
"phone_number": "+40721234567",
"country_code": "RO"
}
```
Run the service:
```bash
$ python main.py
```
Testing using httpie:
```bash
$ http POST localhost:8080/check-phone < test_data.json
```
```bash
HTTP/1.0 200 OK
Content-Length: 137
Content-Type: application/json
Date: Thu, 19 May 2016 23:53:32 GMT
Server: WSGIServer/0.1 Python/2.7.10
{
"carrier_data": "Vodafone",
"number_data": "Country Code: 40 National Number: 721234567",
"possible_number": true,
"valid_number": true
}
```