Skip to content

Commit a55db18

Browse files
committed
fix: adjust api client
1 parent 7c908df commit a55db18

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

api_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@click.command()
88
@click.argument("username")
99
def cmd_api_client(username):
10-
r = requests.get(f"http://127.0.1.1:5000/api/post/{username}")
10+
r = requests.get(f"http://127.0.1.1:8080/api/post/{username}")
1111
if r.status_code != 200:
1212
click.echo(f"Some error ocurred. Status Code: {r.status_code}")
1313
print(r.text)

api_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def cmd_api_client(message):
1414
password = click.prompt("Password", hide_input=True)
1515

1616
r = requests.post(
17-
"http://127.0.1.1:5000/api/key",
17+
"http://127.0.1.1:8080/api/key",
1818
json={"username": username, "password": password},
1919
)
2020

@@ -32,7 +32,7 @@ def cmd_api_client(message):
3232

3333
api_key = api_key_file.open().read()
3434
r = requests.post(
35-
"http://127.0.1.1:5000/api/post",
35+
"http://127.0.1.1:8080/api/post",
3636
json={"text": message},
3737
headers={"X-APIKEY": api_key},
3838
)

0 commit comments

Comments
 (0)