Giter Site home page Giter Site logo

Comments (6)

cweiske avatar cweiske commented on May 20, 2024 1

In ~/.config/shpub.ini add a section like this:

[wordpress]
server=http://wordpress.local
user=https://wordpress.local/user/3
token=asdf
default=1

from wordpress-micropub.

snarfed avatar snarfed commented on May 20, 2024

hey @cweiske, it looks like this might be fixed now. mind trying again?

from wordpress-micropub.

cweiske avatar cweiske commented on May 20, 2024

I'm doing something wrong, or it's too early:

$ curl -i -X POST -H 'User-Agent: shpub' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer abc' -d 'h=entry' -d 'like-of=http://www.bogo' 'http://wordpress.bogo/?micropub=endpoint'

HTTP/1.1 500 Internal Server Error
Date: Wed, 28 Sep 2016 04:15:51 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.19
Link: <http://wordpress.bogo/?micropub=endpoint>; rel="micropub"
Link: <http://anoweco.bogo/auth.php>; rel="authorization_endpoint"
Link: <http://anoweco.bogo/token.php>; rel="token_endpoint"
Content-Length: 38
Connection: close
Content-Type: text/plain; charset=UTF-8

Content, title, and excerpt are empty.

from wordpress-micropub.

snarfed avatar snarfed commented on May 20, 2024

heh, thanks for keeping me honest. adding h=entry to your query might fix it, but I'll reproduce myself.

do you know a way to set up shpub to work with a WordPress on localhost? indieauth obviously can't sign into localhost. maybe i can add it to the config manually?

from wordpress-micropub.

cweiske avatar cweiske commented on May 20, 2024

I've got a local instance of anoweco running (commentpara.de, https://github.com/cweiske/anoweco) which you can configure as auth+token server in wordpress. This is probably the most easy way to get a token.

from wordpress-micropub.

snarfed avatar snarfed commented on May 20, 2024

thanks! the wordpress plugin actually skips verifying tokens when it's running locally, though, so no need.

from wordpress-micropub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.