Skip to content

Commit 6d1bd21

Browse files
committed
add docstring
1 parent ba87b6c commit 6d1bd21

File tree

12 files changed

+74
-2
lines changed

12 files changed

+74
-2
lines changed

snippets/numbers/active_numbers/get/snippet.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient
@@ -10,7 +16,7 @@
1016
key_secret=os.environ.get("SINCH_KEY_SECRET") or "MY_KEY_SECRET"
1117
)
1218

13-
phone_number = "YOUR_RENTED_PHONE_NUMBER"
19+
phone_number = "MY_SINCH_PHONE_NUMBER"
1420
response = sinch_client.numbers.get(phone_number=phone_number)
1521

1622
print(f"Rented number details:\n{response}")

snippets/numbers/active_numbers/list/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/active_numbers/list_auto/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/active_numbers/release/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/active_numbers/update/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/available_numbers/check_availability/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/available_numbers/rent/snippet.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
3-
from sinch.domains.numbers.models.v1.types import SmsConfigurationDict
49
from sinch import SinchClient
10+
from sinch.domains.numbers.models.v1.types import SmsConfigurationDict
511

612
load_dotenv()
713

snippets/numbers/available_numbers/rent_any/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/available_numbers/search_for_available_numbers/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

snippets/numbers/available_regions/list/snippet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Sinch Python Snippet
3+
4+
This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5+
"""
6+
17
import os
28
from dotenv import load_dotenv
39
from sinch import SinchClient

0 commit comments

Comments
 (0)