-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Error: Bad Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 5 additions & 23 deletions
28
number_insight_v2/src/number_insight_v2/number_insight_v2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
import requests | ||
from package1.module1 import say_hello | ||
from http_client.http_client import HttpClient | ||
|
||
|
||
def say_goodbye(): | ||
"""Says goodbye to the caller.""" | ||
print("goodbye") | ||
return 0 | ||
class NI2: | ||
"""Number Insight API V2.""" | ||
|
||
|
||
def say_hello_then_goodbye(): | ||
"""Says hello then goodbye to the caller using say_hello from another package.""" | ||
say_hello() | ||
print("goodbye") | ||
return 0 | ||
|
||
|
||
def make_http_request(): | ||
"""Makes an HTTP request.""" | ||
response = requests.get("https://example.com") | ||
print(response) | ||
return response | ||
|
||
|
||
say_hello_then_goodbye() | ||
make_http_request() | ||
def __init__(self, http_client: HttpClient) -> None: | ||
self._http_client = http_client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters