Page 1 of 1

Send Image using the API in 3.0

Posted: Tue Oct 02, 2018 11:10 pm
by rafarq
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.

Re: Send Image using the API in 3.0

Posted: Tue Oct 02, 2018 11:43 pm
by diego
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

Re: Send Image using the API in 3.0

Posted: Tue Oct 02, 2018 11:52 pm
by rafarq
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

Re: Send Image using the API in 3.0

Posted: Thu Oct 04, 2018 5:01 pm
by diego
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"
}

Re: Send Image using the API in 3.0

Posted: Mon Oct 22, 2018 12:55 pm
by Mitchels
Hi Diego, what's the best alternative to CDN? Like you said, it can get pricey.

Re: Send Image using the API in 3.0

Posted: Mon Oct 22, 2018 11:05 pm
by diego
I use AWS and they provide CDN. But you can search for alternative in Google.

Here there is one with free account. https://cloudinary.com/pricing