Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
πŸ”₯ SSH Creator API πŸ”₯
Browse files Browse the repository at this point in the history
Domain Updated  : )

api.single-developers.software
  • Loading branch information
Malith-Rukshan authored Jan 12, 2022
1 parent fdda08a commit ab3026d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
import json

servers=json.loads(requests.get('https://single-developers.herokuapp.com/servers').content)
servers=json.loads(requests.get('https://api.single-developers.software/servers').content)
for server in servers:
id=str(server)
ip=servers[str(server)]['ip']
Expand All @@ -14,8 +14,8 @@
""")
serverid=input('Server ID : ')

server=json.loads(requests.get(f'https://single-developers.herokuapp.com/servers?id={serverid}').content)
status=requests.get(f'https://single-developers.herokuapp.com/servers?status={serverid}').content
server=json.loads(requests.get(f'https://api.single-developers.software/servers?id={serverid}').content)
status=requests.get(f'https://api.single-developers.software/servers?status={serverid}').content
ip=server['ip']
location=server['location']
emoji=server['emoji']
Expand All @@ -31,7 +31,7 @@
password=input('Password : ')

ssh=serverid+'$'+username+'$'+password
ssh_result=requests.get(f'https://single-developers.herokuapp.com/create?ssh={str(ssh)}').content
ssh_result=requests.get(f'https://api.single-developers.software/create?ssh={str(ssh)}').content
try:
json_ssh=json.loads(ssh_result)
user_name=json_ssh['username']
Expand Down

0 comments on commit ab3026d

Please sign in to comment.