Open jaswrks opened 9 years ago
It would be cool if WP Redirects could expose a JSON API that would allow for the creation of Redirects. I'm imagining just something simple like:
http://example.com/?wp_redirects_api=json
Payload:
apiKey
title
url
Output:
{"redirectURL": "http://example.com/r/redirect-title/"}
Cool idea! Having something like this would allow for integration with stuff like JXA and command-line utilities that might script several redirects.
I'll add this to the todo list for the Next Release.
todo
It would be cool if WP Redirects could expose a JSON API that would allow for the creation of Redirects. I'm imagining just something simple like:
Payload:
apiKey
: Secret API key.title
: Title of the Redirect.url
: URL to redirect to.Output: