API client secret problems


#1

Hi Forum,

I am new to Ghost and have a basic question.
I am running ghost as a docker container with following docker-compose file:
version: ‘2’
services:
ghost:
image: ghost
estart: unless-stopped
ports:
- “2368:2368”
environment:
- url=https://blog.molitornet.com
volumes:
- /srv/molitornet.com/ghost/:/var/lib/ghost/content

I want to use the API of ghost but there is no client secret in the source code of my stories.
There isn’t also a checkbox to activate the public API in the setteings menu.

Where is my mistake?
You can check my blog running out of the container on blog.molitornet.com.

Thanks for your help
Sebastian


#2

Hi Sebastian,

On newer versions of Ghost you’ll need to use the Content API. Docs and instructions for where to get a key are here:


#3

Hi John,

thank you for this hint.
I am sorry that I didn’t read the instructions more carefully.

Please grant me on more question:
Is it possible already possible to manipulat content with the Content API?
I want to add weather data to a page of my ghost blog which is generated via python script.
Or do you have an other idea how to solve this?

Thanks a lot
Sebastian


#4

You might be able to do something like that using the Admin API which has not yet been released.


#5

Thank ypu for this information.
Then I will wait until Admin API is available.