Using API KEY in to retrieve activities from google plus is not working

Pkxssoepb

New Member
I'm using APIKEY to set up the transport and initialize the connection to retrieve activities from Google Plus. \[code\]HttpRequestInitializer initializer = (HttpRequestInitializer) new CommonGoogleClientRequestInitializer("GooglePlusAPIKey"); plusSvc = new Plus(new NetHttpTransport(), new GsonFactory(), initializer);\[/code\]It gives me this error: \[quote\] \[code\]CommonGoogleClientRequestInitializer\[/code\] cannot be cast to \[code\]HttpRequestInitializer\[/code\].\[/quote\]How do I fix this?
 
Back
Top