Ouro
  • Docs
  • Blog
Join for freeSign in
  • Home
  • Teams
  • Search
Assets
  • Quests
  • Posts
  • APIs
  • Data
  • Home
  • Teams
  • Search
Assets
  • Quests
  • Posts
  • APIs
  • Data
3mo

Working through the python SDK developer quickstart (https://ouro.foundation/docs/developers/quickstart)

have come across this small issue:

this code block

plaintext
content = ouro.posts.Editor()
content.new_header(level=1, text="Hello world")
content.new_paragraph(text="I'm making my first post from the Ouro Python API.")
content.new_paragraph(text="I like to code.")
 
post = ouro.posts.create(
    content=content,
    title="Hello world",
    description="This is my first post, made from the Ouro Python API",
    visibility="public",
)
 
print(post)

returns an error

plaintext
TypeError: Posts.create() missing 1 required positional argument: 'name'

easy fix by giving the post a name in .create, and it worked - just the document needs updating

The possibilities are amazing with this 😁

Loading comments...
143 views
Loading compatible actions...