jgmac1106, [jgmac1106], jjuran, [Marten], [grantcodes] and [frank] joined the channel
#[frank][Rose] a question on iOS Shortcuts. When I do a post to my blog (with micropub) I get a response from my WordPress site with the result and headers. How do I pick up this information in Shortcuts? Especially the header to get the Location which has the permalink to my new post.
[Rose] joined the channel
#[Rose]I presume it's returning JSON? JSON is a dictionary
#[frank]It's in the header, not the response itself. Which is JSON
#[Rose]I have a series of Shortcuts I've been modifying this summer, I should get around to posting them.
#[Rose]AFAIK you can't get the headers of the response. I'd be happy to be wrong about that though!
#[frank]Let me put my iPhone from Dutch to English to show the steps I have now. And the error message that goes along. BRB. I hope.
[tantek] joined the channel
#[Rose]Assuming iOS 13 you can also go to Settings > Shortcuts and enable untrusted Shortcuts and send me a link (making sure any keys are not present first though)
#[frank]It went pretty easy. Here's what I have now. After posting I want to get the headers of the URL. That's when I get an error.
#sknebelfor personal use, you could extend your micropub endpoint to return e.g. a json including the path as well. I think that's valid to do with 201/202 responses
#ZegnatYeah, totally valid. I feel like some people had already started doing that?
#jgmac1106jaimetanna I see it as if something deserves its own license then it probably should be it’s own h* level. A self contained piece of content that could or shouldn’t be moved around based on license.
#sebselre the Micropub returning the URL: I have all my endpoints return a HTML link. Shortcuts can parse that too. But I guess JSON makes sense too here, but the redirect is designed to be user facing
#sebselhas to be an <a href> for Shortcuts to work though, iirc. Just putting plain text wont work
[jgmac1106] joined the channel
#jgmac1106I have used h-item for products on shopping pages, maybe that could work when you need a piece of content to have a different license??