File tree Expand file tree Collapse file tree 12 files changed +74
-2
lines changed
search_for_available_numbers Expand file tree Collapse file tree 12 files changed +74
-2
lines changed Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
10
16
key_secret = os .environ .get ("SINCH_KEY_SECRET" ) or "MY_KEY_SECRET"
11
17
)
12
18
13
- phone_number = "YOUR_RENTED_PHONE_NUMBER "
19
+ phone_number = "MY_SINCH_PHONE_NUMBER "
14
20
response = sinch_client .numbers .get (phone_number = phone_number )
15
21
16
22
print (f"Rented number details:\n { response } " )
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
- from sinch .domains .numbers .models .v1 .types import SmsConfigurationDict
4
9
from sinch import SinchClient
10
+ from sinch .domains .numbers .models .v1 .types import SmsConfigurationDict
5
11
6
12
load_dotenv ()
7
13
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
Original file line number Diff line number Diff line change
1
+ """
2
+ Sinch Python Snippet
3
+
4
+ This snippet is available at https://github.com/sinch/sinch-sdk-python-snippets
5
+ """
6
+
1
7
import os
2
8
from dotenv import load_dotenv
3
9
from sinch import SinchClient
You can’t perform that action at this time.
0 commit comments