integrateme-co / integrate-io

Cross-Post your blogs between dev.to, Medium and Hashnode 🔀
MIT License
51 stars 15 forks source link

Add Dynamic Slug in hashnode endpoint #19

Closed uzaxirr closed 3 years ago

uzaxirr commented 3 years ago

Currently, the slug in hashnode's endpoint is hardcoded due to GraphQL

    const GET_ARTCILE = `{
        post(slug: "beginners-guide-to-hacktoberfest-2021", hostname: ""){
          title
          content
        }
      }`

This results in posting only one post, it is desired to make the slug dynamic through hashURLParser function

faraazb commented 3 years ago

Can I make a PR for this? I am thinking of using a placeholder (${expression}).

uzaxirr commented 3 years ago

Can I make a PR for this? I am thinking of using a placeholder (${expression}).

Yes Go Ahead, Just make sure that you make a new branch and make the chnages

faraazb commented 3 years ago

Hey! I have made a PR, #28 .