-
public class PinboardPosterA small Kotlin/Java library for posting to Pinboard.
-
-
Constructor Summary
Constructors Constructor Description PinboardPoster(String apiToken)Creates a new instance using an API Token. PinboardPoster(Properties properties, String key)Creates a new instance using a Properties and Property Key. PinboardPoster(Properties properties)Creates a new instance using a Properties and Property Key. PinboardPoster(Path propertiesFilePath, String key)Creates a new instance using a Properties File Path and Property Key. PinboardPoster(Path propertiesFilePath)Creates a new instance using a Properties File Path and Property Key. PinboardPoster(File propertiesFile, String key)Creates a new instance using a Properties File and Property Key. PinboardPoster(File propertiesFile)Creates a new instance using a Properties File and Property Key. PinboardPoster()Creates a new instance.
-
Method Summary
Modifier and Type Method Description final StringgetApiToken()The API token. final UnitsetApiToken(String apiToken)The API token. final StringgetApiEndPoint()The API end point. final UnitsetApiEndPoint(String apiEndPoint)The API end point. final LoggergetLogger()The logger instance. final BooleanaddPin(String url, String description, String extended, String tags, String dt, Boolean replace, Boolean shared, Boolean toRead)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description, String extended, String tags, String dt, Boolean replace, Boolean shared)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description, String extended, String tags, String dt, Boolean replace)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description, String extended, String tags, String dt)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description, String extended, String tags)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description, String extended)Adds a bookmark to Pinboard. final BooleanaddPin(String url, String description)Adds a bookmark to Pinboard. final BooleandeletePin(String url)Deletes a bookmark on Pinboard. -
-
Constructor Detail
-
PinboardPoster
PinboardPoster(String apiToken)
Creates a new instance using an API Token.- Parameters:
apiToken- The API token.
-
PinboardPoster
PinboardPoster(Properties properties, String key)
Creates a new instance using a Properties and Property Key.- Parameters:
properties- The properties.key- The property key.
-
PinboardPoster
PinboardPoster(Properties properties)
Creates a new instance using a Properties and Property Key.- Parameters:
properties- The properties.
-
PinboardPoster
PinboardPoster(Path propertiesFilePath, String key)
Creates a new instance using a Properties File Path and Property Key.- Parameters:
propertiesFilePath- The properties file path.key- The property key.
-
PinboardPoster
PinboardPoster(Path propertiesFilePath)
Creates a new instance using a Properties File Path and Property Key.- Parameters:
propertiesFilePath- The properties file path.
-
PinboardPoster
PinboardPoster(File propertiesFile, String key)
Creates a new instance using a Properties File and Property Key.- Parameters:
propertiesFile- The properties file.key- The property key.
-
PinboardPoster
PinboardPoster(File propertiesFile)
Creates a new instance using a Properties File and Property Key.- Parameters:
propertiesFile- The properties file.
-
PinboardPoster
PinboardPoster()
Creates a new instance.
-
-
Method Detail
-
getApiToken
final String getApiToken()
The API token.
-
setApiToken
final Unit setApiToken(String apiToken)
The API token.
-
getApiEndPoint
final String getApiEndPoint()
The API end point.
-
setApiEndPoint
final Unit setApiEndPoint(String apiEndPoint)
The API end point.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended, String tags, String dt, Boolean replace, Boolean shared, Boolean toRead)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.tags- A list of up to 100 tags.dt- The creation time of the bookmark.replace- Replace any existing bookmark with the specified URL.shared- Make bookmark public.toRead- Mark the bookmark as unread.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended, String tags, String dt, Boolean replace, Boolean shared)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.tags- A list of up to 100 tags.dt- The creation time of the bookmark.replace- Replace any existing bookmark with the specified URL.shared- Make bookmark public.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended, String tags, String dt, Boolean replace)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.tags- A list of up to 100 tags.dt- The creation time of the bookmark.replace- Replace any existing bookmark with the specified URL.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended, String tags, String dt)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.tags- A list of up to 100 tags.dt- The creation time of the bookmark.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended, String tags)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.tags- A list of up to 100 tags.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description, String extended)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.extended- The description of the bookmark.
-
addPin
@JvmOverloads() final Boolean addPin(String url, String description)
Adds a bookmark to Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark.description- The title of the bookmark.
-
deletePin
final Boolean deletePin(String url)
Deletes a bookmark on Pinboard.
This method supports of all the Pinboard API Parameters.
- Parameters:
url- The URL of the bookmark to delete.
-
-
-
-