Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
add labels when inserting or udating posts via API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dind  
View profile  
 More options Jul 19 2012, 6:39 am
From: dind <dklong...@gmail.com>
Date: Thu, 19 Jul 2012 03:39:52 -0700 (PDT)
Local: Thurs, Jul 19 2012 6:39 am
Subject: add labels when inserting or udating posts via API

Hi Brett

Will it be possibe (or is it possible now) to add labels to new posts
inserted using the Blogger API.

What would be really really cool as well as labels would be the ability to
insert/edit some json style metadata for storage with the post.

Dave L


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brett Morgan  
View profile  
 More options Jul 19 2012, 9:12 pm
From: Brett Morgan <brettmor...@google.com>
Date: Fri, 20 Jul 2012 11:12:51 +1000
Local: Thurs, Jul 19 2012 9:12 pm
Subject: Re: [bloggerDev] add labels when inserting or udating posts via API

Hi Dave,

Yes, you can add labels to posts you create with the Blogger API v3. You do
it using the "labels" element in the post insert method.

There is another element in the post insert method which will help you with
the JSON meta-data - customMetaData. You can persist a JSON blob in this
method, and it will round trip through both the APIs, and is also visible
in the page rendering. I really should document how to use it properly =)

Look at the top couple of posts on this blog to see the custom metadata,
and the labels:

http://developers.google.com/apis-explorer/#s/blogger/v3/blogger.post...

brett

--

Brett Morgan | Developer Relations Engineer, Blogger |
brettmor...@google.com | +61-411-985-703


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dind  
View profile  
 More options Jul 20 2012, 7:37 pm
From: dind <dklong...@gmail.com>
Date: Fri, 20 Jul 2012 16:37:36 -0700 (PDT)
Local: Fri, Jul 20 2012 7:37 pm
Subject: Re: [bloggerDev] add labels when inserting or udating posts via API

Hi Brett

Did you make any changes to  blogger-ckeditor-sample.appspot.com?

I clicked the Create Post button several times thinking nothing was
happening.
When I checked my test blog the post was there several times over. Great
stuff.

Is it possible to insert posts in draft? It appears to have been possible
in earlier
versions of the API.

My use case is to enable group blogging with posts being submitted as
drafts to be published by blog
Owner/Editor.

Am I right in thinking as long as the post to blogger API contains the API
key my post writers
would not need to actually log in to blogger as long as the blog Id is
provided in the code.

Regards

Dave Longley


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brett Morgan  
View profile  
 More options Jul 22 2012, 10:14 pm
From: Brett Morgan <brettmor...@google.com>
Date: Mon, 23 Jul 2012 12:14:49 +1000
Local: Sun, Jul 22 2012 10:14 pm
Subject: Re: [bloggerDev] add labels when inserting or udating posts via API

On Sat, Jul 21, 2012 at 9:37 AM, dind <dklong...@gmail.com> wrote:
> Hi Brett

> Did you make any changes to  blogger-ckeditor-sample.appspot.com?

Yup, turns out I was encoding something as a string that the JS client
library wanted as a native map. Took a bit of digging to find that one out.
=)

> I clicked the Create Post button several times thinking nothing was
> happening.
> When I checked my test blog the post was there several times over. Great
> stuff.

> Is it possible to insert posts in draft? It appears to have been possible
> in earlier
> versions of the API.

Currently posts are created live. I have tickets in to make it possible to
create them in draft.

> My use case is to enable group blogging with posts being submitted as
> drafts to be published by blog
> Owner/Editor.

> Am I right in thinking as long as the post to blogger API contains the API
> key my post writers
> would not need to actually log in to blogger as long as the blog Id is
> provided in the code.

Post creation needs an authorized user. Given your use case I would suggest
you do the workflow in your own app and then as the last step, pubish it
live to Blogger.

--

Brett Morgan | Developer Relations Engineer, Blogger |
brettmor...@google.com | +61-411-985-703


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dind  
View profile  
 More options Oct 27 2012, 10:14 am
From: dind <dklong...@gmail.com>
Date: Sat, 27 Oct 2012 07:14:36 -0700 (PDT)
Local: Sat, Oct 27 2012 10:14 am
Subject: Re: [bloggerDev] add labels when inserting or udating posts via API

Hi Brett

I have been otherwise distracted from blogger development for too long.

A question about customMetaData.

Is it possible to access the customMetaData from the blogger template Data
Tags
something like data:post.customeMetaData. Dropping the json into a
javascript variable for processing in the page by script or
is the only way to get it to use the api or from blog posts feed.

Regards

Dave Longley


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »