Commit 917db135 authored by Matija Obreza's avatar Matija Obreza
Browse files

genesys-client API changed

parent 54ae8260
......@@ -10,6 +10,7 @@ import org.genesys2.anno.model.Settings;
import org.genesys2.anno.parser.CsvDataSourceParser;
import org.genesys2.anno.parser.XlsxDataSourceParser;
import org.genesys2.client.oauth.GenesysClient;
import org.genesys2.client.oauth.api.GenesysApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
......@@ -17,7 +18,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
......@@ -96,6 +96,7 @@ public class SpringConfig {
// Not a bean
public static GenesysClient createGenesysClient(OAuthSettings oauthSettings) {
GenesysClient genesysClient = new GenesysClient();
genesysClient.setGenesysApi(new GenesysApi());
genesysClient.setBaseUrl(oauthSettings.getServerUrl());
genesysClient.setAccessToken(oauthSettings.getAccessToken());
genesysClient.setRefreshToken(oauthSettings.getRefreshToken());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment