Comments (6)
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.
hey @cweiske, it looks like this might be fixed now. mind trying again?
from wordpress-micropub.
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.
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.
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.
thanks! the wordpress plugin actually skips verifying tokens when it's running locally, though, so no need.
from wordpress-micropub.
Related Issues (20)
- Media Endpoitn returns 403 response HOT 2
- Refactor to Allow Content to Be Inserted into a Custom Location HOT 1
- Update Links in main file HOT 1
- Sideloading Images Not Working HOT 1
- Implement Cache-Control Headers on Queries
- mp-destination support
- Add visibility to q=config
- Update Media Endpoint Return HOT 1
- No Longer Store Entire Auth Response
- Presence of <SVG in POSTed content results in 403 HOT 7
- Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /[...]/wp-includes/formatting.php:1595 HOT 3
- Undefined variable: $props
- Support HTML content HOT 3
- Handle PHP 5.6 incompatibility HOT 1
- Support follow-of mf2 property HOT 1
- Remove Draft Setting HOT 1
- Support additional properties in add/update HOT 2
- Automatically set post properties to photo properties
- Plugin always adds e-content div to post content. Should it? HOT 4
- First line of content always outside <p> tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-micropub.