com.klepra.jdbcpractice.GoogleApiClient.java Source code

Java tutorial

Introduction

Here is the source code for com.klepra.jdbcpractice.GoogleApiClient.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.klepra.jdbcpractice;

import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.sun.org.apache.xpath.internal.operations.Plus;

/**
 *
 * @author klemen
 */
public class GoogleApiClient {

    public static void main(String[] args) {

        GoogleCredential credential = new GoogleCredential().setAccessToken("");
        System.out.println(credential.getServiceAccountId());

    }
}