java - Google Calendar API - How To Create Service -


looking @ google calendar api v3 documentation, see them show under events.list snippet of code.

string pagetoken = null; {   events = service.events().list('primary').setpagetoken(pagetoken).execute();   list<event> items = events.getitems();   (event event : items) {     system.out.println(event.getsummary());   }   pagetoken = events.getnextpagetoken(); } while (pagetoken != null); 

i wondering how person go setting "service" in line

events = service.events().list('primary').setpagetoken(pagetoken).execute(); 

i think might

calendar service = calendar(httptransport, jsonfactory, httprequestinitializer)  

but not 100% sure asking help. thanks!

this seems code web based calendar thing, might need web services run on android.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -