Send Image using the API in 3.0

Post Reply
rafarq
Jr. Bludit
Posts: 2
Joined: Tue Oct 02, 2018 11:05 pm

Tue Oct 02, 2018 11:10 pm

Hello, I am just starting to use Bludit on my own blog and I am very interested in using the API to post. Is there any way to send Images using the API? or could I store a image in the folder for images and send the code for inserting it in my post and it will be recognized? I am not sure if bludit can add content uploaded to its folder or the api or the interface should be used in order to have it added to the db.

Thanks in advance. I am really loving bludit.
User avatar
diego
Site Admin
Posts: 711
Joined: Sat May 16, 2015 2:53 pm
Contact:

Tue Oct 02, 2018 11:43 pm

Hi,
for the moment is not implemented to upload images via the API, but could be a good idea to add it.
You can upload the image to some hosting or your own server and then create the post content with the reference to the image.

Diego
rafarq
Jr. Bludit
Posts: 2
Joined: Tue Oct 02, 2018 11:05 pm

Tue Oct 02, 2018 11:52 pm

So is better to upload it to other place, not the one where bludit stores them. Isn’t it? And the get the url to link them.

Also it would be nice to have a way to add tags in de API. thanks
User avatar
diego
Site Admin
Posts: 711
Joined: Sat May 16, 2015 2:53 pm
Contact:

Thu Oct 04, 2018 5:01 pm

For a better performance of the server is a good idea to upload the images in another server such as a CDN, but could be expensive. Anyway, you can upload the images to some place and then in the content add the link.

You can create the tags, just send the tags separated by a comma. You need to add the field tags.

Take a look the documentation https://docs.bludit.com/en/api/create-a ... ge#request

The content is going to be something like this.

Code: Select all

{
    "token": "<TOKEN>",
    "authentication": "<AUTHENTICATION_TOKEN>",
    "title": "<PAGE_TITLE>",
    "content": "<PAGE_CONTENT>",
    "tags": "tag1,tag2,tag3"
}
Post Reply