I’m a web developer, mostly with Python and have close to zero Java or Kotlin experience, but I want to build a bunch of tools for my phone where I can Share
a URL (for example) to an app that simply takes that URL string and sends an HTTP POST request to a pre-arranged URL with some pre-arranged headers or POST data.
So basically I’m looking for an app that:
- Lets you define a series of endpoints
- Accepts share intents from other apps to then bring up a selector asking “Which endpoint do you want to send this to?”, sends it, and exits.
It seems a little nuts that I should have to develop a separate app for each endpoint, when the app experience isn’t really something I’m interested in. Can someone here point me to an app that already does something like this? I’d prefer a FOSS option if possible, but at this point I don’t even know what to search for.
Example use-cases:
- Send a YouTube URL to a service that downloads said video and stores it on a share on my VPN
- Send a text snippet to a service that stores that snippet as a Markdown file for use as ideas for future blog posts
- Send an article URL to a service that strips the ads and images out and saves a Markdown file for future reading.
You can check out Tasker, a powerful Android automation app that might help with your use case. You can create custom actions for HTTP POST requests triggered by share intents. For instance, you can define a task to send a URL to a specific endpoint, and then have Tasker execute the HTTP POST with the necessary headers and data. It’s a bit of a learning curve, but there are plenty of resources online to get started.
By the way, you can also check out this link for viewing Markdown files more easily.