Convert h-entry to ATP Post¶
To convert a h-entry to an ATP post (and send the post to the ATP server), use the hentry_to_atproto_post() function.
- pyatproto.hentry_to_atproto_post(post_url: str, server_config: AtProtoConfiguration) None[source]¶
Convert a h-entry to an ATP post.
- Parameters:
post_url – The URL of the post whose h-entry you want to syndicate to ATP
server_config – The configuration for the ATP server
- Raises:
Exception – If no h-entry is found
Example:
import pyatproto ap = pyatproto.AtProtoConfiguration(ENDPOINT, USERNAME, PASSWORD) pyatproto.hentry_to_atproto_post("https://example.com/post", ap)