Search in sources :

Example 1 with GoogleDataProtocolAPI

use of org.teiid.resource.adapter.google.dataprotocol.GoogleDataProtocolAPI in project teiid by teiid.

the class SpreadsheetDataRetrievalTest method prepareGoogleData.

@BeforeClass
public static void prepareGoogleData() {
    dataProtocol = new GoogleDataProtocolAPI();
    OAuth2HeaderFactory headerFactory = new OAuth2HeaderFactory(refreshToken);
    // headerFactory.login();
    dataProtocol.setHeaderFactory(headerFactory);
    gdata = new GDataClientLoginAPI();
    gdata.setHeaderFactory(headerFactory);
}
Also used : GDataClientLoginAPI(org.teiid.resource.adapter.google.gdata.GDataClientLoginAPI) GoogleDataProtocolAPI(org.teiid.resource.adapter.google.dataprotocol.GoogleDataProtocolAPI) OAuth2HeaderFactory(org.teiid.resource.adapter.google.auth.OAuth2HeaderFactory) BeforeClass(org.junit.BeforeClass)

Aggregations

BeforeClass (org.junit.BeforeClass)1 OAuth2HeaderFactory (org.teiid.resource.adapter.google.auth.OAuth2HeaderFactory)1 GoogleDataProtocolAPI (org.teiid.resource.adapter.google.dataprotocol.GoogleDataProtocolAPI)1 GDataClientLoginAPI (org.teiid.resource.adapter.google.gdata.GDataClientLoginAPI)1