Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created September 25, 2022 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/3537b42b047a776b53376465bc216b0e to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/3537b42b047a776b53376465bc216b0e to your computer and use it in GitHub Desktop.
medium_post_content_html = markDownToHtml(medium_markdown_content)
medium = MediumPoster(MEDIUM_TOKEN, domain)
medium_url = medium.create_post_medium(
title,
medium_post_content_html,
canonicalUrl=wp_post_url,
tags=tags)
print(f'Find Medium Post: {medium_url}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment