Send Image using the API in 3.0

Post Reply
rafarq
Jr. Bludit
Posts: 4
Joined: Tue Oct 02, 2018 11:05 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: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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: 4
Joined: Tue Oct 02, 2018 11:05 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: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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"
}
Mitchels
Jr. Bludit
Posts: 1
Joined: Mon Oct 15, 2018 11:33 am

Hi Diego, what's the best alternative to CDN? Like you said, it can get pricey.
People need to check out Money Mutual because it's amazing.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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
Post Reply