DEV Community

Cover image for HTTP request from Obsidian notes
rooyca
rooyca

Posted on β€’ Edited on β€’ Originally published at dablog.pages.dev

3

HTTP request from Obsidian notes

Are you an Obsidian user looking to elevate your note-taking experience with dynamic data integration? Look no further than APIR (api-request) – an Obsidian plugin designed to streamline HTTP requests directly into your notes.

⚑ How to Use

With APIR, integrating HTTP requests into your notes is a breeze. Simply create a code-block within your note, specifying the language as req. Inside this code-block, customize parameters such as URL, method, body, headers, and more to tailor your request precisely to your needs.

πŸ‘¨πŸ»β€πŸ’» Example Code-block

```req
url: https://my-json-server.typicode.com/typicode/demo/comments
method: post
body: {"id":1}
headers: {"Accept": "application/json"}
format: <h1>{}</h1>
req-id: id-persona
disabled
```
Enter fullscreen mode Exit fullscreen mode

This example demonstrates how to send a POST request to a server, displaying the response 'id' field within an HTML heading tag. For more info about all the flags you can visit APIR docs.

Ready to revolutionize your note-taking workflow? Try APIR today! 🌟


P.S. If you find any bug, have any problem, doubt or want to add any functionality don't hesitate to write me. (You can also leave your issue at https://github.com/Rooyca/obsidian-api-request/issues)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay