Skip to content

Commit c8599f9

Browse files
committed
Update README.md
1 parent d1aaaf3 commit c8599f9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def main():
2828
try:
2929
# Create a new server
3030
server = client.servers.create(
31-
imageSlug="ubuntu-20-04-x64",
32-
locationId="pl-waw",
31+
imageSlug="foo",
32+
locationId="foo",
3333
name="test-server",
34-
profileSlug="s-1vcpu-1gb",
34+
profileSlug="foo",
3535
)
3636

3737
# Access server data from response body
@@ -86,11 +86,6 @@ def main():
8686
hookType="foo",
8787
hookValue="https://your-webhook-url.com"
8888
)
89-
90-
# Access response data (same pattern as new SDK)
91-
webhook_id = webhook.get("body").get("id")
92-
callback_id = webhook.get("headers").get("x_callback_id")
93-
9489
except RequestException as e:
9590
print(f"Request failed: {e}")
9691

0 commit comments

Comments
 (0)