Click or drag to resize

HoarderServiceClient Class

A .NET client class for the Hoarder web service API. All methods, request bodies and response bodies are mapped to strongly-typed C# shared library classes.

The Hoarder web service only returns response status 200 (OK). Any other status indicates a serious problem that is probably outside of the control of the service, such as network errors or incorrect Uris. Every response body has exactly the same shape, with some known properties such as code and message always present in the root of the response object. These known properties can be used to determine if the service call succeeded or failed in the business processing sense. For more information see the Hoarder Wiki section about the web service.

Inheritance Hierarchy
SystemObject
  Orthogonal.Hoarder.StdLibHoarderServiceClient

Namespace: Orthogonal.Hoarder.StdLib
Assembly: Orthogonal.Hoarder.StdLib (in Orthogonal.Hoarder.StdLib.dll) Version: 8.0.21
Syntax
C#
public sealed class HoarderServiceClient : IDisposable

The HoarderServiceClient type exposes the following members.

Constructors
 NameDescription
Public methodHoarderServiceClient Constructs a strongly-typed .NET client to the Hoarder REST-style web service.
Top
Properties
 NameDescription
Public propertyClient The HTTP client that is being used to access the remote web service.
Top
Methods
 NameDescription
Public methodAddVisitorBookEntry Adds an entry to the visitor book.
Public methodAssignSource Assigns a source title in a set of titles.
Public methodBulkAssign Bulk assigns the property values of many Titles to the same values.
Public methodClearTitleGenres Clears all genres from Titles with Ids that match an argument set of Ids.
Public methodDataFixup Performs a custom fixup (repair) of certain information in Titles, and then updates the configuration document to ensure it is synchronised with the Titles.
Public methodDeletePictureBlob Deletes a picture blob.
Public methodDeleteTitle Deletes a title.
Public methodDeleteWorkerHistory Deletes a worker log.
Public methodDisposeReleases all resources used by the HoarderServiceClient
Public methodExportCollectionToJsonBlob Starts an export of the entire database to a JSON document in the backup container.
Public methodExportCollectionToXmlBlob Starts an export of the entire database to an XML document in the backup container.
Public methodExportToAzureTables Starts an exports the entire database to Azure Tables in the backup storage account.
Public methodExportToCsvNormalised Starts an export of the entire database to normalized CSV files in the backup container.
Public methodGetDatabaseStats Retrieves database query statistics and performance information.
Public methodGetDatabaseSummary Retrieves a summary of the counts of different types and values in the database.
Public methodGetGlobalConfig Returns the Hoarder application suite configuration values.
Public methodGetMetadata Lists metadata about the web service and the data manager.
Public methodGetWorkerLogLines Gets the lines of a specific worker log.
Public methodGlobalNameSearch Runs a global search for a string in Title titles, Picture names, Track names, File names and Contributor names.
Public methodKeyCheck Checks if an API Key has any roles.
Public methodListBlobVDirMetadata Gets metadata for picture blobs with a virtual directory prefix -- WARNING LARGE RESPONSE BODY.
Public methodListContributorsInverted Gets an array of inverted contributors.
Public methodListDuplicateTitles Lists duplicate titles.
Public methodListPicMetaShort Gets short metadata for picture blobs.
Public methodListPicturesInverted Gets an array of inverted pictures.
Public methodListRandomTitles Lists random titles.
Public methodListThumbMetaShort Gets short metadata for picture blobs.
Public methodListTitleItems Gets a list of title items that match a set of combined filters. The return records are a 'narrow' version of a Title record and only contain the most commonly used properties.
Public methodListTitles Gets a list of titles that match a set of combined filters.
Public methodListTitlesByContributorName Lists titles containing a specified name as one of the contributors.
Public methodListTitlesByLegacyId Lists titles with a legacy Int32 Id from previous databases.
Public methodListTitlesByPictureBlobName Lists titles containing a specified blob name as one of the pictures.
Public methodListUniqueContributorNames Lists unique constributor names in all titles in the database.
Public methodListVisitorBookEntries Lists all visitor book entries.
Public methodListWorkers Lists worker activity.
Public methodPurgeGenre Purges a genre from the database and removes it from all titles.
Public methodReadBlobMetadata Gets metadata attached to the picture blob.
Public methodReadConfig Reads the Hoarder database configuration record.
Public methodReadGlobalConfig Returns the Hoarder application configuration.
Public methodReadTitle Retrieves a single title by Id.
Public methodRenameContributor Renames a contributor and all Title references to the contributor.
Public methodRenameLocation Renames a Location in all titles that reference the name.
Public methodRenameMedia Renames a Media in all titles that reference the name.
Public methodRenameOwner Renames an Owner in all titles that reference the name.
Public methodRenameTag Renames a Tag in all titles that reference the name.
Public methodRepairMissingPhotos Scans the Pictures references in Titles to see if they exist as a blob.
Public methodRepsertTitle Replaces or inserts a title.
Public methodSetPictureMetadata Sets picture metadata.
Public methodUpdateConfig Updates the Hoarder database configuration record.
Public methodUpdateTitleFromItem Updates a title with values from a title list item.
Public methodUploadPicture Uploads a picture.
Public methodUseCountGenre Gets a count of titles with a specified genre name.
Public methodUseCountLocation Gets a count of titles with a specified location name.
Public methodUseCountMedia Gets a count of titles with a specified media name.
Public methodUseCountOwner Gets a count of titles with a specified owner name.
Public methodUseCountRole Gets a count of titles with a specified role name.
Public methodUseCountTag Gets a count of titles with a specified tag name.
Top
Fields
 NameDescription
Public fieldStatic memberAuthHeaderName This is the name of the custom request header that the Hoarder web service recognises as providing an authorisation key to access features that update the database or retrieve private information. Failure to provide a valid key causes the service to redact selected private information from responses or authorisation failures may occur for some endpoints.
Top
See Also