Skip to content

Commit 7c869a3

Browse files
committed
improve example in docs
1 parent d2f8bba commit 7c869a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/index.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ Welcome to Topogram API Client's documentation!
2020
topogram = TopogramAPIClient("http://localhost:3000")
2121

2222
# login as a user
23-
topogram.login("[email protected]", "password")
23+
topogram.user_login("[email protected]", "password")
2424

2525
# create a new network
26-
topogram.create_topogram("test")
26+
r = topogram.create_topogram("test")
27+
28+
topogram_id = r["data"]["id"]
29+
topogram.create_node(topogram_id, id="my awesome node", x=103, y=502, data={"lat" : 3.12, "lng": 5.27})
2730

2831

2932
Contents:

0 commit comments

Comments
 (0)