We are not using the official Instagram API but this private Instagram API, because the official Instagram API doesn't allow you to post things on your account.
In your settings.json
file, you'll need to add the following configuration object to the actions
property:
"actions": {
"instagram": {
"account": "johndoe",
"password": "pony123"
}
}
curl -X POST -H "Content-Type: application/json" -d '{
"media": "/path/to/image.jpg"
"caption": "I love ponies !"
}' "http://localhost:6060/api/v1/actions/instagram"
name | type | required | description |
---|---|---|---|
media | string |
× | path to the image you want to share |
caption | string |
− | optionnal caption |
Only JPG files are supported for now