Use steem-hook to enable task automation with steem

in #utopian-io6 years ago (edited)

steem-hook

What is the project about?

Steem-hook provides a tiny, easy to use web service for posting to the STEEM blockchain via services like IFTTT.

https://mysite.com/posting/myuser/awesome-tag/My_Awesome_Title?body=And%20now%20for%20something%20compleatly%20different%21

You can use a GET or POST request. For a GET request the post body will be read from the content query string parameter in the URL as shown above. For a POST provide some content in the request body as JSON and be sure to provide a Content-Type header set to application/json.

{
    "content" : "And now for something compleatly different\r\n"
}

The only WIF required is posting. If you run steem-hook from your own server you don't have to share this credential with a third party.

Since steem-hook intends to remain small and focused it is well suited for deployment to Heroku's free tier and similar platforms.

heroku config:set POSTING_KEY={YOUR_OWN_POSTING_WIF}

If you set the NODE_ENV environment variable to development it will post content to testnet.steem.vc instead of Steemit. For example

heroku config:set NODE_ENV=development

image.png

Technology Stack

Special appreciation to more projects that were very helpful in getting steem-hook off the ground:

Roadmap

Additional end points
  • Comment
  • Queue & Approve discussions before posting to blockchain
  • Schedule posts for a specific time
Improved features
  • More forgiving parsing of markdown and html in the post body
  • Better validation of route parameters
Planned Services
  • Deploy to Heroku button
  • steem-hook as a service using Steemconnect
Planned Tutorials
  • Connect your blog to SteemIt using RSS, IFTTT and steem-hook
  • Using IFTTT, steem-hook, and templates to identify, assemble and edit top quality content

How to contribute?

This project welcomes Pull Requests and Issues on Github. See CONTRIBUTING.md for up to date guidelines. In general...

Please submit an Issue to:
  • Report a bug
  • Request a feature
  • Ask for help
Proposing a change

Please fork and submit a Pull Request to steem-hook on GitHub. Include a bit of a summary and follow the guidelines in GitHub documentation.

If your change addresses an existing issue please reference your PR in the issue's discussion.

Coding conventions

Please run prettier --write --single-quote or an equivalent on all new or changed Javascript before submitting.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Aw, yeah! Thank you for moderating @vladimir-simovic 🎩

Hey @tdre I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

COOL. My first utopian upvote on the first of what I expect will be several projects to come. I hope they prove to be of some use. Thanks!

Nice start. Very pleased to see you got approved this time.

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by tdreid from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Resteemed by @resteembot! Good Luck!
Curious? Read @resteembot's introduction post
Check out the great posts I already resteemed.

ResteemBot's Maker is Looking for Work.

"content" : "And now for something compleatly different\r\n"

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 70979.31
ETH 3711.36
USDT 1.00
SBD 3.79