-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable,notion.api.v1.endpoint.BlocksSupport,notion.api.v1.endpoint.DatabasesSupport,notion.api.v1.endpoint.EndpointsSupport,notion.api.v1.endpoint.PagesSupport,notion.api.v1.endpoint.SearchSupport,notion.api.v1.endpoint.UsersSupport
public final class NotionClient implements AutoCloseable, Closeable, DatabasesSupport, PagesSupport, BlocksSupport, SearchSupport, UsersSupport
-
-
Field Summary
Fields Modifier and Type Field Description private Stringtokenprivate NotionHttpClienthttpClientprivate NotionLoggerloggerprivate NotionJsonSerializerjsonSerializerprivate StringbaseUrl
-
Constructor Summary
Constructors Constructor Description NotionClient(String token)NotionClient(String token, NotionHttpClient httpClient, NotionLogger logger)NotionClient(String token, NotionHttpClient httpClient, NotionLogger logger, NotionJsonSerializer jsonSerializer, String baseUrl)
-
Method Summary
Modifier and Type Method Description StringgetToken()UnitsetToken(String token)NotionHttpClientgetHttpClient()UnitsetHttpClient(NotionHttpClient httpClient)NotionLoggergetLogger()UnitsetLogger(NotionLogger logger)NotionJsonSerializergetJsonSerializer()UnitsetJsonSerializer(NotionJsonSerializer jsonSerializer)StringgetBaseUrl()UnitsetBaseUrl(String baseUrl)Unitclose()-
Methods inherited from class notion.api.v1.NotionClient
appendBlockChildren, createPage, listDatabases, listDatabases, listDatabases, listUsers, listUsers, listUsers, queryDatabase, queryDatabase, retrieveBlockChildren, retrieveDatabase, retrieveDatabase, retrievePage, retrievePage, retrieveUser, retrieveUser, search, search, updatePageProperties -
Methods inherited from class notion.api.v1.endpoint.DatabasesSupport
buildRequestHeaders, urlEncode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NotionClient
NotionClient(String token)
-
NotionClient
NotionClient(String token, NotionHttpClient httpClient, NotionLogger logger)
-
NotionClient
NotionClient(String token, NotionHttpClient httpClient, NotionLogger logger, NotionJsonSerializer jsonSerializer, String baseUrl)
-
-
Method Detail
-
getHttpClient
NotionHttpClient getHttpClient()
-
setHttpClient
Unit setHttpClient(NotionHttpClient httpClient)
-
getLogger
NotionLogger getLogger()
-
setLogger
Unit setLogger(NotionLogger logger)
-
getJsonSerializer
NotionJsonSerializer getJsonSerializer()
-
setJsonSerializer
Unit setJsonSerializer(NotionJsonSerializer jsonSerializer)
-
getBaseUrl
String getBaseUrl()
-
setBaseUrl
Unit setBaseUrl(String baseUrl)
-
-
-
-