Call this plugin API from another plugin #396
Replies: 1 comment
-
Hi! Thank you for your interest about calling this plugin from another plugin via an API. 🙂
Currently, this plugin does not have an API that other plugins could call. I am interested in hearing ideas of what features an API could offer. Maybe I could then begin planning a first sub-set of API features. Anyway, it could take quite a long time before a conrete feature could come out, as I currently do not have a clear picture of the first steps towards building an API.
It might be an overkill, but it depends very much on what you want to do. The decision can be evaluated e.g. by the following questions: What features of the SC plugin would you like to utilize via an API from your plugin?
If you don't need many of the above features, will it be sufficient for you to use Node.js's
I'm not familiar with the best practises in this regard, and if I will ever create an API, I would first need to research this topic. If I will end up planning an API, I could take a look at the Dataview plugin's API and see how it's implemented - just to name one example. There can be other plugins with valuable information, too. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm new to obsidian plugin development.
I'd like to create a plugin that calls a specific app from the command line and after elaborating its return it passes it back to obsidian.
Given that I'll have to interact with the OS via bash/terminal I though it would be a good idea not to reinvent the wheel and use this plugin as a requirement for the new one.
1 Is there a way to call this plugin API from another plugin?
2 Given I'll use a minimum of features of this plugin would it an overkill?
3 What are the best practices in general to make plugins communicate with each other?
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions