Software Alternatives & Reviews

¿Cómo usar la api de Dev.to para escribir un post?

Sanity.io DEV.to
  1. Sanity.io a platform for structured content that comes with an open-source editor that you can customize with React.js.
    Pricing:
    • Open Source
    • Freemium
    • Free Trial

    #CMS #API Tools #Realtime Backend / API 55 social mentions

  2. 2
    Where software engineers connect, build their resumes, and grow.
    Export default async function writeToDevTo(post) { const article = { title: post.title, body_markdown: post.content, published: true, main_image: post.image, canonical_url: post.canonicalUrl description: post.description, tags: 'javascript, spanish, webdev' }; try { const res = await fetch('https://dev.to/api/articles', { method: 'POST', headers: { 'Content-Type': 'application/json', 'api-key': import.meta.env.VITE_DEVTO_TOKEN }, body: JSON.stringify({ article }) }); return { status: res.status, url: res.url }; } catch (e) { console.error(e); return { status: 500, error: e }; } }.

    #CMS #Blogging #Blogging Platform 384 social mentions

Discuss: ¿Cómo usar la api de Dev.to para escribir un post?

Log in or Post with