Matthew Zalewski
Matthew Zalewski
Great - If we can handle leg 1/3 without user interaction, is making leg 2 pluggable an option, defaulting to OOB/prompt? eg: https://gist.github.com/mzalewski/2b2ff2de0d88a5c3194c407b796695df What are the main issues you're having?...
@shiva-avula-nuk Basically, what you need is an Access Token. Once you have that, you can sign requests via the Auth HTTP header. The main issue is: to get that OAuth...
@derwentx Let me know if you solve the query parameter thing. Does adding "?context=edit" work? @Script-Shiva - I've got an implementation that seems to work ok here (though I've only...
@kadamwhite Here are a few examples of some possible interfaces/workflows. The first requires OAuth-specific methods to be built into node-wpapi (which I think was your preferred option?) The other 2...
Simple solution that seems to have worked for me: https://github.com/mzalewski/graphql-tag/tree/patch-1 Any reason to avoid using the graphql language printer to do this?
Converted my code into a pull request (#227) - it's probably slightly inefficient since it's parsing, printing then parsing again - but it works for now and should fix the...