Tech Rocks

Coldfusion
Java
JQuery

An online resource for latest web technologies like Coldfusion, JRun, Pro*C, JQuery, HTML5, PHP, W3C, Java, J2EE, C, C++, ORACLE, PL/SQL, MySql, Ajax, Coldbox, Fusebox, UNIX, JavaScript, NodeJS and much more...

Thursday, September 12, 2013

Google Plus list activities - java api

List retval = new ArrayList();

Plus.Activities.List listActivities =
plusSvc.activities().list(userid, "public");

listActivities.setMaxResults(100L);

// get the 1st page of activity objects
ActivityFeed activityFeed = listActivities.execute();

// unwrap the request and extract the pieces we want
List pageOfActivities = activityFeed.getItems();

// loop through until we arrive at an empty page
while (pageOfActivities != null) {
for (Activity activity : pageOfActivities) {
retval.add(activity);
System.out.println("ID " + activity.getId() + " Content: " +
activity.getPlusObject().getContent());
}

// we will know we are on the last page when the next page token
// is null (in which case, break).
if (activityFeed.getNextPageToken() == null) {
break;
}

// prepare to request the next page of activities
listActivities.setPageToken(activityFeed.getNextPageToken());

// execute and process the next page request
activityFeed = listActivities.execute();
pageOfActivities = activityFeed.getItems();
}

Wednesday, September 4, 2013

Google OAuth Scope List

Service

Scope

Google Drive

https://www.googleapis.com/auth/drive

Google Drive Files

https://www.googleapis.com/auth/drive.file

Chrome Web store

https://www.googleapis.com/auth/chromewebstore.readonly

Google Docs

https://docs.google.com/feeds/

Google Finance

https://finance.google.com/finance/feeds/

Gmail

https://mail.google.com/mail/feed/atom

Google Health

https://www.google.com/health/feeds/

Google Spreadsheets

https://spreadsheets.google.com/feeds/

Google Tasks

https://www.googleapis.com/auth/tasks

Google URL Shortener

https://www.googleapis.com/auth/urlshortener

Google Wave

http://wave.googleusercontent.com/api/rpc

Google Webmaster Tools

https://www.google.com/webmasters/tools/feeds/

User Info (Email)

https://www.googleapis.com/auth/userinfo.email

User Info (Profile)

https://www.googleapis.com/auth/userinfo.email

Youtube

https://gdata.youtube.com

Google H9

https://www.google.com/h9/feeds/

Google Maps

https://maps.google.com/maps/feeds/

Moderator

https://www.googleapis.com/auth/moderator

Open Social

https://www-opensocial.googleusercontent.com/api/people/

Orkut Rest API

https://www.googleapis.com/auth/orkut

Orkut

https://orkut.gmodules.com/social/rest

Picassa Web

https://picasaweb.google.com/data/

Google + login

https://www.googleapis.com/auth/plus.login

Google +

https://www.googleapis.com/auth/plus.me

Side Wiki

https://www.google.com/sidewiki/feeds/

Google Sites

https://sites.google.com/feeds/

Google Analytics

https://www.google.com/analytics/feeds/

Google App state

https://www.googleapis.com/auth/appstate

Google Base

https://www.google.com/base/feeds/

Goolge Buzz

https://www.googleapis.com/auth/buzz

Google Books

https://www.google.com/books/feeds/

Blogger

https://www.blogger.com/feeds/

Google Calendar

https://www.google.com/calendar/feeds/

Google Games

https://www.googleapis.com/auth/games

Google Cloud Messaging for Android

https://android.apis.google.com/c2dm

Google Cloud Messaging for Browser

https://www.googleapis.com/auth/gcm_for_chrome

Google Contacts

https://www.google.com/m8/feeds/