Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
61ea239cb0 | |||
347f869d2d | |||
72b2cb7591 |
BIN
.screens/nanpa.png
Normal file
BIN
.screens/nanpa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
@ -1,4 +1,9 @@
|
|||||||
# NANPA API Client
|
# NANPA API Client
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="./.screens/nanpa.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
A Python client for interacting with the North American Numbering Plan Administration (NANPA) public API system.
|
A Python client for interacting with the North American Numbering Plan Administration (NANPA) public API system.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# North American Numbering Plan Administration (NANPA) API Client - Developed by acidvegas in Python (https://git.acid.vegas/nanpa)
|
# North American Numbering Plan Administration (NANPA) API Client - Developed by acidvegas in Python (https://git.acid.vegas/nanpa)
|
||||||
|
# nanpa/client.py
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
@ -14,6 +15,7 @@ class NanpaAPI:
|
|||||||
|
|
||||||
self.base_url = 'https://api.nanpa.com/reports/public'
|
self.base_url = 'https://api.nanpa.com/reports/public'
|
||||||
|
|
||||||
|
|
||||||
def _make_request(self, endpoint: str, params: dict = None) -> dict:
|
def _make_request(self, endpoint: str, params: dict = None) -> dict:
|
||||||
'''
|
'''
|
||||||
Make a request to the NANPA API.
|
Make a request to the NANPA API.
|
||||||
|
Loading…
Reference in New Issue
Block a user