Examples of people()


Examples of com.google.api.services.plus.Plus.people()

            // Google Plus APIを使ってユーザー情報を取得する
            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();
            Person person = plus.people().get("me").execute();

            userModel = UserService.put(
                tokenInfo.getUserId(),
                tokenInfo.getEmail(),
                person.getUrl(),
View Full Code Here

Examples of com.google.api.services.plus.Plus.people()

            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();

            Person person = null;
            try {
                person = plus.people().get("me").execute();

            } catch (GoogleJsonResponseException e) {
                // When deleted
                if(e.getStatusCode() == 404) {
//                    UserService.delete(userModel);
View Full Code Here

Examples of com.google.api.services.plus.Plus.people()


        Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
        .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
        .build();
        Person person = plus.people().get("me").execute();

        // 表示名
        if(person.getDisplayName() != null && !person.getDisplayName().isEmpty()) {
            userModel.setDisplayName(person.getDisplayName());
        }
View Full Code Here

Examples of com.google.api.services.plus.Plus.people()

        .setAccessToken(userModel.getAccessToken())
        .setRefreshToken(userModel.getRefreshToken());

        // Google Plus APIを使ってユーザー情報を取得する
        Plus plus = new Plus(TRANSPORT, JSON_FACTORY, credential);
        Person person = plus.people().get("me").execute();

        // 表示名
        if(person.getDisplayName() != null && !person.getDisplayName().isEmpty()) {
            userModel.setDisplayName(person.getDisplayName());
        }
View Full Code Here

Examples of com.google.api.services.plus.Plus.people()

            // Google Plus APIを使ってユーザー情報を取得する
            Plus plus = new Plus.Builder(TRANSPORT, JSON_FACTORY, credential)
            .setApplicationName(Constants.GOOGLE_APPLICATION_NAME)
            .build();
            Person person = plus.people().get("me").execute();

            userModel = UserService.put(
                tokenInfo.getUserId(),
                tokenInfo.getEmail(),
                person.getUrl(),
View Full Code Here

Examples of com.google.api.services.plus.Plus.people()

        GoogleCredential credential = getCredentials(apiKey);
        String emailAddress = null;

        try{
            Plus plus = new Plus(httpTransport, jsonFactory, credential);
            Person mePerson = plus.people().get("me").execute();
            List<Person.Emails> emails = mePerson.getEmails();
            for (Person.Emails email : emails){
                if (email.getType().equals("account")){
                    emailAddress = email.getValue();
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.