Search This Site

Custom Search

Sunday, May 30, 2010

Re: [bloggerDev] Obtaining URLs of Blogger entries

simple :-)

entry.getEditLink().getHref()



2010/5/20 soujiro0725 <soujiro0725@gmail.com>
Hi, I'm trying to obtain URLs of blog entries from Blogger using
Blogger API with Java libraries.
I was not sure how, so I used "getEditLink()" as shown below.  But
what I got was...

-----------------------------------------
the title of an entry
       com.google.gdata.data.Link@8f4fb3
...
-----------------------------------------

what is this?
How can I get URLs?

Thanks in advance.  The code is below.

--------------------------------------------------------------------
import com.google.gdata.client.*;
import com.google.gdata.data.*;
import com.google.gdata.util.*;
import java.io.IOException;
import java.net.URL;

public class TestBloggerFeedOutput {

       public static void main(String[] args) {

               String blogId = "xxxxx";
               try {
                       GoogleService myService = new GoogleService("blogger", "list-blog-
entries");
                       printAllPosts(myService, blogId);
               } catch (ServiceException e) {
                       System.out.println(e.getMessage());
               } catch (IOException e) {
                       System.out.println(e.getMessage());
               }
       }
       public static void printAllPosts(GoogleService myService, String
blogId) throws ServiceException, IOException {

               final URL feedUrl = new URL("http://www.blogger.com/feeds/" + blogId
+ "/posts/default");
               Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
               System.out.println(resultFeed.getTitle().getPlainText());
               for (int i = 0; i < resultFeed.getEntries().size(); i++) {
                       Entry entry = resultFeed.getEntries().get(i);
                       System.out.println("\t" + entry.getTitle().getPlainText());

                       System.out.println("\t" + entry.getEditLink());                //<--
HERE!!!
               }
               System.out.println();
       }

}
//-----------------the code ends
here------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Apologies for lack of moderation lately

I've transitioned primarily to another project, and had neglected this group for the last couple weeks. I'm in the process of bringing a couple new Blogger team members on to this list who will take over primary responsibility for monitoring and responding. Apologies again, responsiveness will pick up again in short order.

--Rick

-----
blog: http://tins.rklau.com/
twitter: http://twitter.com/rklau
voice: 650-456-3215

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] ... interoperability with the widest range of feed readers could be improved ...

W3C Feed Validation Service:

Source: http://infotruck.blogspot.com/atom.xml

Recommendations

This feed is valid, but interoperability with the widest range of feed
readers could be improved by implementing the following
recommendations.

*

line 1, column 0: Use of unknown namespace: http://schemas.google.com/g/2005
[help]

<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet
href="http://www.blog ...

*

line 1, column 917: Self reference doesn't match document
location [help]

... /posts/default?redirect=false&amp;v=2'/><link
rel='alternate' type='text ...
^

*

line 1, column 1052: Unregistered link relationship: hub [help]

... ref='http://pubsubhubbub.appspot.com/'/><link rel='next'
type='applicati ...
^

*

line 1, column 5291: content should not contain onblur attribute
(7 occurrences) [help]

... k.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link
rel='replies' ty ...
^

*

line 1, column 18836: content should not contain object tag (2
occurrences) [help]

... k.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link
rel='replies' ty ...
^

*

line 1, column 154252: Invalid HTML: EOF in middle of construct,
at line 1, column 103 [help]

... k.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link
rel='replies' ty ...
^

- Could any body to help me with these troubles? Specificly, how I
must to proceed to solve they?

Thanking in advance

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, May 28, 2010

[bloggerDev] Posting in Blogger via Google Buzz

Hi Team...

I just want to know , if it possible to post in blogger via Google
Buzz. That means when I post something in Buzz(private or Public) , i
can also see it in my Blogger page.

i have tried the blogger email id to post via buzz,but it didnt work.

Its nice to have something like "Post to Blogger" link in buzz and
should be a straight way process....

Waiting for your answer....

thanks
Sam

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Thursday, May 27, 2010

[bloggerDev] Get a portion of blog post.

I would like to use blogger as a backend to an article based site. My
question is is there a way to grab only a portion of the post content
so I can have a list of articles with title and description.
So the user would see the title and a portion of the post and have a
link to read the entire post.

I guess I could manually edit each post html and add a div to the
portion I want and use xpath to snatch the text but i was hoping for a
simpler way to get that data straight from the api call.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Monday, May 24, 2010

[bloggerDev] Using setPublished() to before the blog was created

Hey, I'm trying to create a client for blogging with the Java APIs and
I tried to create a post that was before the creation of the blog.
The blog would appear in the feed of posts but not on the HTML UI. Is
there any way to enable this? I want to be able to import old blog
posts onto Blogger from something else and this seems like an easy way
to do it with the APIs.

Also, it seems that the feed of blog posts are organized by update
time instead of published time. is there a way to reorganize this
using the APIs?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Thursday, May 20, 2010

[bloggerDev] Retrieving a comments feed seems to be not working from within an OAuth Gadget

Hello everyone!

I have implemented a Google Gadget featuring basic Blogger
functionality. For authentication, I am using the OAuth proxy, as
described here: http://code.google.com/apis/gdata/articles/gdata_gadgets.html#OAuthProxy

Retrieving the user's blogs as well as posts from these blogs works
quite fine. Also, creating, updating and deleting posts is working.
However, when I try to access a comments feed, the callback method
again and again receives a new OAuth approval URL. It seems as if --
when requesting the comments feed -- the Blogger API does not
recognize that the user is already logged in.

All I've done was changing from e.g.
_bloggerService.getBlogPostEntry(url, callback, errorHandler) to
_bloggerService.getBlogCommentFeed(url, callback, errorHandler). The
urls I'm passing to the function is correct, I've already checked
that.

Is this a bug or am I missing something obvious? Here is my code:

-----CODE START-----
function showComments(url)
{
var callback = function(response)
{
document.getElementById('comments').innerHTML = '';

if (response.oauthApprovalUrl)
{
var popup = shindig.oauth.popup(
{
destination: response.oauthApprovalUrl,
windowOptions: 'height=600,width=800',
onOpen: function() { displayDiv('authorized'); },
onClose: function() { showComments(url); }
});

(popup.createOpenerOnClick())();
}
else if (response.feed)
{
alert(gadgets.json.stringify(response.feed));
}
};

// produces an infinite loop cause the callback function recieves an
// oauthApprovalUrl again and again and again...
_bloggerService.getBlogCommentFeed(url, callback, function(error)
{alert(error);});
}
-----CODE END-----

Thanks a lot for your help!
--Max

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Obtaining URLs of Blogger entries

Hi, I'm trying to obtain URLs of blog entries from Blogger using
Blogger API with Java libraries.
I was not sure how, so I used "getEditLink()" as shown below. But
what I got was...

-----------------------------------------
the title of an entry
com.google.gdata.data.Link@8f4fb3
...
-----------------------------------------

what is this?
How can I get URLs?

Thanks in advance. The code is below.

--------------------------------------------------------------------
import com.google.gdata.client.*;
import com.google.gdata.data.*;
import com.google.gdata.util.*;
import java.io.IOException;
import java.net.URL;

public class TestBloggerFeedOutput {

public static void main(String[] args) {

String blogId = "xxxxx";
try {
GoogleService myService = new GoogleService("blogger", "list-blog-
entries");
printAllPosts(myService, blogId);
} catch (ServiceException e) {
System.out.println(e.getMessage());
} catch (IOException e) {
System.out.println(e.getMessage());
}
}
public static void printAllPosts(GoogleService myService, String
blogId) throws ServiceException, IOException {

final URL feedUrl = new URL("http://www.blogger.com/feeds/" + blogId
+ "/posts/default");
Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
System.out.println(resultFeed.getTitle().getPlainText());
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
Entry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());

System.out.println("\t" + entry.getEditLink()); //<--
HERE!!!
}
System.out.println();
}

}
//-----------------the code ends
here------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Wednesday, May 19, 2010

[bloggerDev] Re: Including Javascript in a new entry via the GData API

HTML is allowed, see the following code to build an URL for a MyPlayer-
object.

public static String getMyPlayerContent(String playerUrl) {
return "<object width='640' height='385'><param
name='movie'
value='" + playerUrl + "'></param><embed src='" + playerUrl + "'
type='application/x-shockwave-flash' width='640' height='385'></
embed></object>";

On 12 mei, 00:19, Joel Dietz <jdi...@gmail.com> wrote:
> I was looking over the Blogger Google Data API for JAVA and didn't see
> any examples of including full HTML and/or Javascript in a post. Is
> this allowed? Supported?
>
> I would like to be able to automatically embed Google Wave in new blog
> posts.
>
> --
> You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
> To post to this group, send email to bloggerdev@googlegroups.com.
> To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/bloggerdev?hl=en.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Monday, May 17, 2010

[bloggerDev] Adding Flash elements to my blogspot

Have I got my CDATA tags correct?

<[!CDATA[...]]>

Attempting to implement the following;

<![CDATA[<embed src="http://www.box.net//static/flash/box_explorer.swf?
widget_hash=975eg1jyjz&v=0&cl=0
" width="460" height="345"
wmode="transparent" type="application/x-shockwave-flash"></embed>]]>

content still remains invisible..

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Posting MIME with CDATA[] Enclosure = 400 "Expected Base-64 content"

Anyone know why?

The error text is:
[Line 63, Column 12, element content] Expected Base-64 content

The server seems to be missing the CDATA ending ]]> enclosure. By my
count it seems to be choking on the LF+CR immediately following the </
content> tag.

The actual HTTP post follows. Any help much appreciated.

-Peter

==========================================================================
POST /feeds/XXXXXXXXXXX/posts/default HTTP/1.1
GData-Version: 2
Authorization: GoogleLogin
auth=DQAAAJgAAABvYYO742Dn9TQutlSBtAXUsdjGEpUzzakDX6BbMrEy-
NVTxMVqLTcvhZFPZ4uLw_yyI_y9J4Gv_z7pw57LK33AQ8-Gs5sVRPIkMs-
MzKOYmJuz2Ws49ORgVkZGVsqoqHD24m-R48N-LEg66bRmu95a4CJNCna2X-agEDz-
AbhX8cvYA-xYITYauzL8bILPyWRPrMVaQnuHNL44G379yNma
Content-Type: application/atom+xml
Content-Length: 3409

<?xml version='1.0' encoding='utf-8'?>
<entry xmlns='http://www.w3.org/2005/Atom'>
<title type='text'>Test MIME Post to Blogger</title>
<content type='multipart/related'>
<![CDATA[

Content-Type: multipart/related;
boundary="------------080305040202000602050300_.REL"
MIME-Version: 1.0
Date: Mon, 17 May 2010 14:00:03 -0400

This is a multi-part message in MIME format.

--------------080305040202000602050300_.REL
Content-Type: text/html; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><title></title>
<META content=3D"text/html; charset=3Dwindows-1252" http-
equiv=3DContent=
-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.7600.16535"></HEAD>
<body=20
style=3D"BORDER-BOTTOM: medium none; BORDER-LEFT: medium none;
BORDER-TO=
P: medium none; BORDER-RIGHT: medium none">
<P style=3D"TEXT-ALIGN: left"><SPAN=20
style=3D"FONT-FAMILY: 'Candara'; COLOR: #d4d4d4; FONT-SIZE:
10pt"><FONT=20
color=3D#000000 size=3D4>Test MIME post to Blogger.&nbsp; </FONT></
SPAN>=
<SPAN=20
style=3D"FONT-FAMILY: 'Candara'; COLOR: #d4d4d4; FONT-SIZE:
10pt"><FONT=20
color=3D#000000><img border=3D"0" src=3D"cid:CID-019debbb-41c5-
e956-16e4=
-093b7b201f04"></P></FONT></SPAN></BODY></HTML>
--------------080305040202000602050300_.REL
Content-Type: image/jpeg;name="403157295727603.jpg"
Content-Disposition: inline; filename="403157295727603.jpg"
Content-ID: <CID-019debbb-41c5-e956-16e4-093b7b201f04>
Content-Location: Images/403157295727603.jpg
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQAAAQABAAD/
2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/
2wBDAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/
wAAR
CAAQABADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/
8QAtRAA

AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK

FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG

h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/
8QAtREA

AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk

NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE

hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDE/wCCNP7EP7M/
7UPju20D4sab4EufDPw9
8AaRrEfwknjn03xB8Rv7Z0rUrKSfStQ0i80zWtP8OeA78adqGq/2XfwLaS3/
AIX0WGGPRrue
3T4B/aP+DXwk8AaV4m8DaX43+AXx5H/
CrY9b1Xxz8FYBqngOXUtS03WBNo9tql1pWnTTzQza
Wbi+01lliOmajZQXvnQXskT+g/8ABM79vL4afsf/ABh0X4u+Kft/izwlf/DPU/Bl5b
+CdW8P
f2+trrB0G9g1PSIdc1jRNK1SMy6JFGkU+taXbXVrdi7hv2iWNZ/AP2mPiV
+yTZQajpX7MLfF
HRPhfoXgC90y71P46+I/h/d+KNV1gNrUElzZW/gS/vNO07wtp
+ijRYrS41R4dUcC9vNXjt/K
eQ/uUZ4iGbVVOVR5dVwNFUUqUJYODp0586dRNRoyvaXNJN1VOEHeEKfL
+NunRllVFxVNZhSx
1T2zdWcMXJTqUVTaptOVaKWnLFpUnB1dJzmpf//Z

--------------080305040202000602050300_.REL--

]]>
</content>
<category scheme='http://www.blogger.com/atom/ns#' term="Favorites"/>
<category scheme='http://www.blogger.com/atom/ns#' term="Waiting"/>
<app:control xmlns:app='http://www.w3.org/2007/app'>
<app:draft>yes</app:draft>
</app:control>
</entry>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, May 14, 2010

Ten Steps To Goal Getting


Ten Steps To Goal Getting

These ten steps will help you achieve your goals in 2010 and coming years

1. Make the commitment to reach your goal. "One person with a commitment is worth a hundred who only have an interest." Mary Crowley.

2. Commit yourself to detailed accountability. Record your progress toward your goals every night, and list the six most important things you need to do the next day. Daily discipline is the key to reaching your goals.

3. Build your life on a sold foundation of honesty, character, integrity, trust, love, and loyalty. This foundation will give you an honest shot at reaching any goal you have set properly.

4. Break your intermediate and long-range goals into increments.

5. Be prepared to change. You can't control the weather, inflation, interest rates, Wall Street, etc. Change your decision to move toward a goal carefully--but be willing to change your direction to get there as conditions and circumstances demand.

6. Share your "give-up" goals (i.e., give up smoking, being rude, procrastinating, being late, eating too much, etc.) with many people. Chances are excellent they're going to encourage you.

7. Become a team player. Remember: You can have everything in life you want if you will just help enough other people get what they want.

8. See the reaching. In your imagination see yourself receiving that diploma, getting that job or promotion, making that speech, moving into the home of your dreams, achieving that weight-loss goal, etc.

9. Each time you reach a goal your confidence will grow so that you can do bigger and better things. After accomplishing any goal, record it in your journal, Weekly Planner or Palm Pilot.

10. Remember, what you get by reaching your destination isn't nearly as important as what you become by reaching your goals--what you will become is the winner you were born to be!

Wednesday, May 12, 2010

[bloggerDev] Re: Profile ID

Never to worry, I have just discovered how to do it and in fact, I
have extracted them. Thanks all.

On Apr 27, 5:08 pm, Gordons <godwinc.char...@gmail.com> wrote:
> Hello all, please I am working on client App for blogger, but on the
> APIs are stated the Profile ID and Blog ID, Can someone please  help
> and tell me how I will be able to get them and put them in my code.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
> To post to this group, send email to bloggerdev@googlegroups.com.
> To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/bloggerdev?hl=en.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, May 11, 2010

[bloggerDev] Including Javascript in a new entry via the GData API

I was looking over the Blogger Google Data API for JAVA and didn't see
any examples of including full HTML and/or Javascript in a post. Is
this allowed? Supported?

I would like to be able to automatically embed Google Wave in new blog
posts.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, May 7, 2010

Re: [bloggerDev] Linking of Comments in BUZZ to BLOGGER

Chintan - yes this is definitely something the team is looking at. Thanks!

--Rick

On Thu, May 6, 2010 at 12:01 PM, Chintan Shah <chintankumar.shah@gmail.com> wrote:
Hi,

I was happy that i am now able to connect my b logger to my BUZZ, I
had a good visibility of my blog.
But now when someone sees my blog in BUZZ and gives comments in BUZZ,
these commets dont get linked to my BLOGGER. As a result of which my
blogger account looks inactive and there are no comments seen on the
BLOGGER. Though I have got commets on the same on BUZZ.

I feel that you should link the comments in BUZZ to BLOGGER.
Hope to receive ur feedback on the same

Regards
Chintan Shah
INDIA

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--
-----
blog: http://tins.rklau.com/
twitter: http://twitter.com/rklau
voice: 650-456-3215

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Thursday, May 6, 2010

[bloggerDev] Linking of Comments in BUZZ to BLOGGER

Hi,

I was happy that i am now able to connect my b logger to my BUZZ, I
had a good visibility of my blog.
But now when someone sees my blog in BUZZ and gives comments in BUZZ,
these commets dont get linked to my BLOGGER. As a result of which my
blogger account looks inactive and there are no comments seen on the
BLOGGER. Though I have got commets on the same on BUZZ.

I feel that you should link the comments in BUZZ to BLOGGER.
Hope to receive ur feedback on the same

Regards
Chintan Shah
INDIA

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, May 4, 2010

Re: [bloggerDev] Do you offer access to the blogger firehose of blog posts and comments

Spinn3r is likely doing their own crawling, it's definitely not via a formal relationship with us.

What you're building sounds very interesting, but given our engineering priorities right now I don't see us committing to building out the changes  necessary to build in support for a firehose (or an SLA to ensure it's consistently available). Just not on the top of our priority list right now.

You might want to start with http://www.blogger.com/changes.xml - that may have enough of what you need to know what you need to crawl.

--Rick

On Tue, May 4, 2010 at 9:42 AM, David Johnson <drj.infinity@gmail.com> wrote:
Hi Rick,

First, let me say thank you for the response.  How does spinn3r.com get access to the blogger posts and comments?  Spiders and bots?  Is there anyone I could talk to that would be interested in having a BD discussion on this topic?  What I am doing is aggregating content and categorizing it semantically (themes and concepts).  My solution is not keyword or natural language based, and least 90% accurate in sentiment measures.  I could do spiders and bots, I would just really prefer not to...

Have a great day!

David
678-761-5395


On 5/4/10 12:22 PM, "Rick Klau" <rick@rklau.com> wrote:

Unfortunately we don't offer a firehose at this time.

--Rick

On Tue, May 4, 2010 at 9:04 AM, djohnsonatl <drj.infinity@gmail.com> wrote:
Hi,

I am curious to know if there is a program to provide access to all
blogs and comments in real-time through an API.  If possible I'm
hoping to avoid writing bots and spiders.  Please let me know at your
earliest convenience including anything on pricing and terms.

Have a great day!

Cheers,

David Johnson
678-761-5395

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com <mailto:bloggerdev%2Bunsubscribe@googlegroups.com> .

For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--
-----
blog: http://tins.rklau.com/
twitter: http://twitter.com/rklau
voice: 650-456-3215

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Getting content from a designated post

Ques: I am curious to know if there is a program to provide access to allblogs and comments in real-time through an API. If possible I'mhoping to avoid writing bots and spiders. Please let me know at yourearliest convenience including anything on pricing and terms.
Hey,

If you still looking for a solution for the above i think i might have one, not sure if it is exactly what you looking for, but try it out anyways and let me know...

What i did got me the post content...

In the following section:
// Called when getBlogPostFeed() returns the list of blog posts
var handleBlogPostFeed = function(postsFeedRoot) {
var blogTitle = postsFeedRoot.feed.getTitle().getText();
var postEntry = postsFeedRoot.feed.getEntries()[0]; // only
get first post
var entryUri = postEntry.getSelfLink().getHref(); //
post's uri

I added a new variable declaration for the post content, heres the
code that you will place under the above directly:
var postContent = postEntry.getSummary().getText();

Now in the display section, coded as below:
// Get the blog post entry
bloggerService.getBlogPostEntry(entryUri,
function(postRoot) {
var postTitle = postRoot.entry.getTitle().getText();
content.innerHTML = '<p>Title of latest post to ' +
blogTitle + ': '
+ '<strong>"' + postTitle + '"</
strong></p>';
},

I replaced one thing, the "postTitle" with my variable to be as
follow:
// Get the blog post entry
bloggerService.getBlogPostEntry(entryUri,
function(postRoot) {
var postTitle = postRoot.entry.getTitle().getText();
content.innerHTML = '<p>Title of latest post to ' +
blogTitle + ': '
+ '<strong>"' + postContent + '"</
strong></p>';
},

This got me the content of my post...

However as you might notice, it was just a summary...still didn't figure a away to get the entire post...
Let me know if that was of any help...and let me know if you have found a better method...

Cheers...and good luck with your project....

How 2 add labels to your blogpost with Java

import java.io.IOException;
import java.net.URL;
import java.util.Set;

import com.google.gdata.client.GoogleService;
import com.google.gdata.client.blogger.BloggerService;
import com.google.gdata.data.Category;
import com.google.gdata.data.Entry;
import com.google.gdata.data.Feed;
import com.google.gdata.data.PlainTextConstruct;
import com.google.gdata.util.ServiceException;

public class MaxBlogPost {

       private static final String METAFEED_URL = "http://www.blogger.com/feeds/default/blogs";

       public static Entry createPost(GoogleService myService, String
blogID, String title, String content, boolean bIsDraft, String labels)
throws ServiceException, IOException {
               Entry newPost = new Entry();
               newPost.setTitle(new PlainTextConstruct(title));
               newPost.setContent(new PlainTextConstruct(content));
               Set<Category> categories = newPost.getCategories();
               categories.clear();
               String schema = "http://www.blogger.com/atom/ns#";
               categories.add(new Category(schema, labels));
               newPost.setDraft(bIsDraft);
               URL postUrl = new URL("http://www.blogger.com/feeds/" + blogID + "/
posts/default");
               return myService.insert(postUrl, newPost);
       }

       public static void main(String[] args) {
               String applicationName = "MaxRecorder";
               String userName = "<youremail>@gmail.com";
               String password = "xxxxxx";
               BloggerService myService = new BloggerService(applicationName);
               String title = "De Mortel";
               String content = getMyPlayerContent("http://www.youtube.com/cp/
vjVQa1PpcFNtmdXWIXjmKrUfnG2ljl1inDONsteF3ts=");
               try {
                       myService.setUserCredentials(userName, password);
                       String blogID = getBlogId(myService);
                       String labels = "De Mortel, 2010, Alticom, falcon peregrines,
Internl.net, slechtvalken, wildlife, slechtvalken.startkabel.nl,
alticom.nl";
                       @SuppressWarnings("unused")
                       Entry blogEntry = createPost(myService, blogID, title, content,
true, labels);
               } catch (ServiceException e) {
                       e.printStackTrace();
               } catch (IOException e) {
                       e.printStackTrace();
               }
       }

       private static String getBlogId(BloggerService myService) throws
ServiceException, IOException {
               final URL feedUrl = new URL(METAFEED_URL);
               Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
               // If the user has a blog then return the id (which comes after
'blog-')
               if (resultFeed.getEntries().size() > 0) {
                       Entry entry = resultFeed.getEntries().get(0);
                       return entry.getId().split("blog-")[1];
               }
               throw new IOException("User has no blogs!");
       }

       public static String getMyPlayerContent(String playerUrl) {
               return "<object width='640' height='385'><param name='movie'
value='" + playerUrl + "'></param><embed src='" + playerUrl + "'
type='application/x-shockwave-flash' width='640' height='385'></
embed></object>";
       }

}

Re: [bloggerDev] Do you offer access to the blogger firehose of blog posts and comments

Hi Rick,

First, let me say thank you for the response.  How does spinn3r.com get access to the blogger posts and comments?  Spiders and bots?  Is there anyone I could talk to that would be interested in having a BD discussion on this topic?  What I am doing is aggregating content and categorizing it semantically (themes and concepts).  My solution is not keyword or natural language based, and least 90% accurate in sentiment measures.  I could do spiders and bots, I would just really prefer not to...

Have a great day!

David
678-761-5395


On 5/4/10 12:22 PM, "Rick Klau" <rick@rklau.com> wrote:

Unfortunately we don't offer a firehose at this time.

--Rick

On Tue, May 4, 2010 at 9:04 AM, djohnsonatl <drj.infinity@gmail.com> wrote:
Hi,

I am curious to know if there is a program to provide access to all
blogs and comments in real-time through an API.  If possible I'm
hoping to avoid writing bots and spiders.  Please let me know at your
earliest convenience including anything on pricing and terms.

Have a great day!

Cheers,

David Johnson
678-761-5395

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com <mailto:bloggerdev%2Bunsubscribe@googlegroups.com> .
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.