All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.SphereApiConfig Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.client;

import static io.sphere.sdk.client.ClientPackage.API_URL;

/**
 * Configuration to make request for a SPHERE.IO web service, does not include authentication configuration or tokens.
 */
public interface SphereApiConfig {
    String getApiUrl();

    String getProjectKey();

    static SphereApiConfig of(final String projectKey) {
        return of(projectKey, API_URL);
    }

    static SphereApiConfig of(final String projectKey, final String apiUrl) {
        return new SphereApiConfigImpl(projectKey, apiUrl);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy