-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Sybit-Education/develop
Develop
- Loading branch information
Showing
15 changed files
with
371 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* Copyright (c) 2017 Sybit GmbH | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
*/ | ||
package com.sybit.airtable; | ||
|
||
/** | ||
* Configuration settings for Airtable. | ||
* Used by class <code>Airtable</code> to configure basic settings. | ||
*/ | ||
public class Configuration { | ||
|
||
public static final String ENDPOINT_URL = "https://api.airtable.com/v0"; | ||
|
||
private String endpointUrl; | ||
private String apiKey; | ||
private Long timeout; | ||
|
||
/** | ||
* Configure API using given API Key and default endpoint. | ||
* | ||
* @param apiKey | ||
*/ | ||
public Configuration(String apiKey) { | ||
this(apiKey, ENDPOINT_URL); | ||
|
||
} | ||
/** | ||
* Configure API using given API Key and default endpointURL. | ||
* | ||
* @param apiKey | ||
* @param endpointUrl | ||
*/ | ||
public Configuration(String apiKey, String endpointUrl) { | ||
this.apiKey = apiKey; | ||
this.endpointUrl = endpointUrl; | ||
} | ||
|
||
public String getEndpointUrl() { | ||
return endpointUrl; | ||
} | ||
|
||
public void setEndpointUrl(String endpointUrl) { | ||
this.endpointUrl = endpointUrl; | ||
} | ||
|
||
public String getApiKey() { | ||
return apiKey; | ||
} | ||
|
||
public void setApiKey(String apiKey) { | ||
this.apiKey = apiKey; | ||
} | ||
|
||
/** | ||
* Get connection timeout. | ||
* @return | ||
*/ | ||
public Long getTimeout() { | ||
return timeout; | ||
} | ||
|
||
/** | ||
* Set connection timeout. | ||
* @param timeout | ||
*/ | ||
public void setTimeout(Long timeout) { | ||
this.timeout = timeout; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.