I'm using the API given here from Google, https://developers.google.com/blogger/docs/3.0/using . It allows managing the Blogger blogs easily. The problem is that the content that this API accepts is an HTML content. So, I must provide it with.
title
Hello, how are you doing today
...
So, to integrate an image on the post I must upload it to another image uploader service then get the URL and add it to a tag.
In contrast, if I want to upload the image directly to the Blogger UI, the image will be uploaded to Google servers.
My question is: How can I upload images to google servers as the Blogger UI do, then integrate them into my posts?
I too have been trying to work around this issue. What I did in the end is to use Google Drive API to upload the image and then get a shareable URL and embed it in the blog post.
This comes with its drawbacks, the photos are slower to load on the blog and is not accessible to crawlers. But works as far as the requirement is concerned.
If you find any way to get it done through Blogger API or through Google Photos API, please do let me know.
Related
My Question is about YouTube thumbnails and endscreens
We are trying to automate publishing of content for YouTube channels. Can thumbnail be automatically set for the given episode with details such as show logo, episode number from the content.
Looking for API to support the automation.
Can somebody please help?
There's the following API endpoint that permits you to set the thumbnail of your videos (thus, of your broadcasts too): Thumbnails.set.
For what concerns Python, I'd recommend to read, understand and use the public sample code from Google: upload_thumbnail.py.
Note that in case you need uploading a thumbnail for a broadcast, then simply use that broadcast's ID as the parameter videoId that you'll pass to the Thumbnails.set API endpoint call.
I'm really confused with the process to create a post in a google plus page.
I have created a user in google plus and created a 'Page' (Business Page). Now, from a Python script i want to post to the 'Page'. So could you someone Suggest which API should i use ? Whether its Google + API Google Domain API?
I have done research and what i understood is that, its not possible to post to
a page from a script. or i'm i missing something?
I have already created a python script which can post content to facebook,Twitter and LinkedIn but stuck with Google Plus.
I have already gone through the links like
Google + Domain API
Google + API
But those does not create posts directly in a page.
Please guide me. Any help would be appreciated.
Unfortunately the Google Plus Pages api (required for working with pages) is a separate api, and is not open to the public... You can send a request to join here:
https://developers.google.com/+/api/pages-signup
I had the same problem...
So basically we would like to integrate our platform with box.net, in particular to be able to stream videos uploaded there, since we can't unfortunately use youtube/vimeo (which support noembed).
I had a look in the doc and:
it seems that for videos the preview is only working for flv and swf.
However I tried with my personal account and one swf embedded with their embedding link didn't preview anyway.
I would like to use the API to upload videos directly from the client, but what happens if the user is not actually authenticated to box.net and the video is private (which is our requirement).
If embedding videos with box is just not going to work we can look at other alternatives, but unfortunately from the list of supported sites http://noembed.com/
it doesn't that we could use any of the services..
For the second point, you can just do all the authentication for your site via box.net. They provide authentication as part of their api: http://developers.box.com/oauth/.
When a user logs into your site, authenticate them with box.net using python requests, and a custom authentication backend, django docs here, example on stack overflow here: Django Remote Authentication without redirecting.
How to get Google Contacts Image link Using Gdata python client.
I tried gd_client.GetPhoto(contact_entry), its allows to download the contacts images locally.
But i don't want to save images locally. I need direct image link so that i can populate in my web app dynamically, like <img src="google contact image link"></img>.
Any solution is really appreciated.
Use the newer google-api-python-client library, OAuth 2.0 authentication and you can get the photo URI from the basic user profile:
Obtaining User Profile Information
Here's an example of using some of this with AppEngine:
Google+ OAuth 2.0 AppEngine Sample
I am trying to retrieve a photo (the .jpg file) from a Picasa album using the gdata Google API. However I did not find any method which does it, even though it is possible to upload a photo using methods like InsertPhoto and InsertPhotoSimple.
I guess I must be missing something :-(. A simple example would help.
Client API provides methods only for obtaining information on photos: http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_python.html#Photos
To retrieve an image, use an HTTP GET with information previously obtained. Read the documentation.
For this purpose you may use a Python library:
httplib
urllib2