How to use google+ api

Discussion in 'Google API' started by s3rcl, Aug 13, 2012.

  1. #1
    Hi,
    I am new to google+ api, and this is my first time using any sort of api.
    I have downloaded and successfully configured google-plus-java-starter.

    Now I want to get all my comments from my google+. But I am having difficulty doing it.

    In standAlone Explorer at the google+ api, in Comments: get, where can I get the "commentId" ,
    and in the Comments: list where I can get the "activityId"

    Similarly, in the following code, where can I get the commentId.
    
    
    [COLOR=#880000][FONT=inherit]// This sample assumes a client object has been created.[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]// To learn more about creating a client check out the starter:[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    [/FONT][/COLOR][COLOR=#880000][FONT=inherit]// http://code.google.com/p/google-plus-java-starter/[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Comment[/FONT][/COLOR][COLOR=#000000][FONT=inherit] comment [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] plusone[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#000000][FONT=inherit]comments[/FONT][/COLOR][COLOR=#666600][FONT=inherit]().[/FONT][/COLOR][COLOR=#000000][FONT=inherit]get[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#000000][FONT=inherit]commentId[/FONT][/COLOR][COLOR=#666600][FONT=inherit]).[/FONT][/COLOR][COLOR=#000000][FONT=inherit]execute[/FONT][/COLOR][COLOR=#666600][FONT=inherit]();[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
    
    [/FONT][/COLOR][COLOR=#660066][FONT=inherit]System[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#000000][FONT=inherit]out[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#000000][FONT=inherit]println[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Got comment with ID "[/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit] comment[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#000000][FONT=inherit]getId[/FONT][/COLOR][COLOR=#666600][FONT=inherit]()[/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
            [/FONT][/COLOR][COLOR=#008800][FONT=inherit]" and contents "[/FONT][/COLOR][COLOR=#666600][FONT=inherit]+[/FONT][/COLOR][COLOR=#000000][FONT=inherit] comment[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#000000][FONT=inherit]getPlusObject[/FONT][/COLOR][COLOR=#666600][FONT=inherit]().[/FONT][/COLOR][COLOR=#000000][FONT=inherit]getContent[/FONT][/COLOR][COLOR=#666600][FONT=inherit]());
    [/FONT][/COLOR]
    Code (markup):
    Thanks in advance.
     
    s3rcl, Aug 13, 2012 IP
  2. adwordsexpert2

    adwordsexpert2 Peon

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i also need to knw ... how to use this?
     
    adwordsexpert2, Aug 14, 2012 IP
  3. s3rcl

    s3rcl Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have downloaded a Google Plus Java Starter web app from
    In this app there is already a publicActivityId is created

    How can I create a new one?
     
    s3rcl, Aug 14, 2012 IP