Demo of generating a JWT and authenticating with Ghost's Admin API.
- Save
ghost-auth.rb
locally gem install httparty jwt
first- With Ghost running on localhost:2368
ruby ghost-auth.rb {admin api key}
to run
Designed to authenticate with a local install, change the line 18 if your Ghost install is elsewhere