Is there any way to upload images using blogger API? (https://developers.google.com/blogger/docs/3.0/using) I have a web developer who is going through trouble to integrate Blogger API for uploading images to my site. I thought if I could be of any help at all to him.
Normally using Picasa the images upload to googleusercontent like this : Link to a picasa image
But what I want is for it to be uploaded to this : Link to a image uploaded from Blogger post
The developer is using PHP. I tried searching many sites but with no luck for a working version. Any help is appreciated thanks.
The images uploaded to Blogger directly via the website (having the URL format of x.bp.blogspot.com
) are also saved on Picasa behind the scenes.
The domains used by these images (like lh3.googleusercontent.com
, 3.bp.blogspot.com
,1.bp.blogspot.com
,2.bp.blogspot.com
,4.bp.blogspot.com
) are interchangeable in nature and all of them serve the same image.
For example, the image that is using the googleusercontent URL (For testing purpose, I uploaded an image using the Official Blogger Android app) -
https://lh3.googleusercontent.com/-VESDEmEh7EM/WpCZ_8qD_wI/AAAAAAAAYs0/XDWkxkEz7EUrGUBmpTSEKBGiynGrEKOygCHMYCw/s640/1519426035853.jpg
Can also be accessed by using bp.blogspot.com URLs, like -
https://4.bp.blogspot.com/-VESDEmEh7EM/WpCZ_8qD_wI/AAAAAAAAYs0/XDWkxkEz7EUrGUBmpTSEKBGiynGrEKOygCHMYCw/s640/1519426035853.jpg
If you still want to exclusively use the x.bp.blogspot.com
format URLs for images in the Blog post, you can write a custom logic in your PHP application to replace all references of lh3.googleusercontent.com
(that you got after uploading the images via Picasa API) with x.bp.blogspot.com
URLs before creating the post via the API)