Categorygithub.com/devopsarr/radarr-go
module
1.1.1
Repository: https://github.com/devopsarr/radarr-go.git
Documentation: pkg.go.dev

# README

Go API client for radarr

Radarr API docs

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v5.10.4.9218
  • Package version: 1.1.1
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import radarr "github.com/devopsarr/radarr-go/radarr"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value radarr.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), radarr.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value radarr.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), radarr.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using radarr.ContextOperationServerIndices and radarr.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), radarr.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), radarr.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:7878

ClassMethodHTTP requestDescription
AlternativeTitleAPIGetAlttitleByIdGet /api/v3/alttitle/{id}
AlternativeTitleAPIListAlttitleGet /api/v3/alttitle
ApiInfoAPIGetApiGet /api
AuthenticationAPICreateLoginPost /login
AuthenticationAPIGetLogoutGet /logout
AutoTaggingAPICreateAutoTaggingPost /api/v3/autotagging
AutoTaggingAPIDeleteAutoTaggingDelete /api/v3/autotagging/{id}
AutoTaggingAPIGetAutoTaggingByIdGet /api/v3/autotagging/{id}
AutoTaggingAPIListAutoTaggingGet /api/v3/autotagging
AutoTaggingAPIListAutoTaggingSchemaGet /api/v3/autotagging/schema
AutoTaggingAPIUpdateAutoTaggingPut /api/v3/autotagging/{id}
BackupAPICreateSystemBackupRestoreByIdPost /api/v3/system/backup/restore/{id}
BackupAPICreateSystemBackupRestoreUploadPost /api/v3/system/backup/restore/upload
BackupAPIDeleteSystemBackupDelete /api/v3/system/backup/{id}
BackupAPIListSystemBackupGet /api/v3/system/backup
BlocklistAPIDeleteBlocklistDelete /api/v3/blocklist/{id}
BlocklistAPIDeleteBlocklistBulkDelete /api/v3/blocklist/bulk
BlocklistAPIGetBlocklistGet /api/v3/blocklist
BlocklistAPIListBlocklistMovieGet /api/v3/blocklist/movie
CalendarAPIListCalendarGet /api/v3/calendar
CalendarFeedAPIGetFeedV3CalendarRadarrIcsGet /feed/v3/calendar/radarr.ics
CollectionAPIGetCollectionByIdGet /api/v3/collection/{id}
CollectionAPIListCollectionGet /api/v3/collection
CollectionAPIPutCollectionPut /api/v3/collection
CollectionAPIUpdateCollectionPut /api/v3/collection/{id}
CommandAPICreateCommandPost /api/v3/command
CommandAPIDeleteCommandDelete /api/v3/command/{id}
CommandAPIGetCommandByIdGet /api/v3/command/{id}
CommandAPIListCommandGet /api/v3/command
CreditAPIGetCreditGet /api/v3/credit
CreditAPIGetCreditByIdGet /api/v3/credit/{id}
CustomFilterAPICreateCustomFilterPost /api/v3/customfilter
CustomFilterAPIDeleteCustomFilterDelete /api/v3/customfilter/{id}
CustomFilterAPIGetCustomFilterByIdGet /api/v3/customfilter/{id}
CustomFilterAPIListCustomFilterGet /api/v3/customfilter
CustomFilterAPIUpdateCustomFilterPut /api/v3/customfilter/{id}
CustomFormatAPICreateCustomFormatPost /api/v3/customformat
CustomFormatAPIDeleteCustomFormatDelete /api/v3/customformat/{id}
CustomFormatAPIDeleteCustomFormatBulkDelete /api/v3/customformat/bulk
CustomFormatAPIGetCustomFormatByIdGet /api/v3/customformat/{id}
CustomFormatAPIListCustomFormatGet /api/v3/customformat
CustomFormatAPIListCustomFormatSchemaGet /api/v3/customformat/schema
CustomFormatAPIPutCustomFormatBulkPut /api/v3/customformat/bulk
CustomFormatAPIUpdateCustomFormatPut /api/v3/customformat/{id}
CutoffAPIGetWantedCutoffGet /api/v3/wanted/cutoff
DelayProfileAPICreateDelayProfilePost /api/v3/delayprofile
DelayProfileAPIDeleteDelayProfileDelete /api/v3/delayprofile/{id}
DelayProfileAPIGetDelayProfileByIdGet /api/v3/delayprofile/{id}
DelayProfileAPIListDelayProfileGet /api/v3/delayprofile
DelayProfileAPIUpdateDelayProfilePut /api/v3/delayprofile/{id}
DelayProfileAPIUpdateDelayProfileReorderPut /api/v3/delayprofile/reorder/{id}
DiskSpaceAPIListDiskSpaceGet /api/v3/diskspace
DownloadClientAPICreateDownloadClientPost /api/v3/downloadclient
DownloadClientAPICreateDownloadClientActionByNamePost /api/v3/downloadclient/action/{name}
DownloadClientAPIDeleteDownloadClientDelete /api/v3/downloadclient/{id}
DownloadClientAPIDeleteDownloadClientBulkDelete /api/v3/downloadclient/bulk
DownloadClientAPIGetDownloadClientByIdGet /api/v3/downloadclient/{id}
DownloadClientAPIListDownloadClientGet /api/v3/downloadclient
DownloadClientAPIListDownloadClientSchemaGet /api/v3/downloadclient/schema
DownloadClientAPIPutDownloadClientBulkPut /api/v3/downloadclient/bulk
DownloadClientAPITestDownloadClientPost /api/v3/downloadclient/test
DownloadClientAPITestallDownloadClientPost /api/v3/downloadclient/testall
DownloadClientAPIUpdateDownloadClientPut /api/v3/downloadclient/{id}
DownloadClientConfigAPIGetDownloadClientConfigGet /api/v3/config/downloadclient
DownloadClientConfigAPIGetDownloadClientConfigByIdGet /api/v3/config/downloadclient/{id}
DownloadClientConfigAPIUpdateDownloadClientConfigPut /api/v3/config/downloadclient/{id}
ExtraFileAPIListExtraFileGet /api/v3/extrafile
FileSystemAPIGetFileSystemGet /api/v3/filesystem
FileSystemAPIGetFileSystemMediafilesGet /api/v3/filesystem/mediafiles
FileSystemAPIGetFileSystemTypeGet /api/v3/filesystem/type
HealthAPIListHealthGet /api/v3/health
HistoryAPICreateHistoryFailedByIdPost /api/v3/history/failed/{id}
HistoryAPIGetHistoryGet /api/v3/history
HistoryAPIListHistoryMovieGet /api/v3/history/movie
HistoryAPIListHistorySinceGet /api/v3/history/since
HostConfigAPIGetHostConfigGet /api/v3/config/host
HostConfigAPIGetHostConfigByIdGet /api/v3/config/host/{id}
HostConfigAPIUpdateHostConfigPut /api/v3/config/host/{id}
ImportListAPICreateImportListPost /api/v3/importlist
ImportListAPICreateImportListActionByNamePost /api/v3/importlist/action/{name}
ImportListAPIDeleteImportListDelete /api/v3/importlist/{id}
ImportListAPIDeleteImportListBulkDelete /api/v3/importlist/bulk
ImportListAPIGetImportListByIdGet /api/v3/importlist/{id}
ImportListAPIListImportListGet /api/v3/importlist
ImportListAPIListImportListSchemaGet /api/v3/importlist/schema
ImportListAPIPutImportListBulkPut /api/v3/importlist/bulk
ImportListAPITestImportListPost /api/v3/importlist/test
ImportListAPITestallImportListPost /api/v3/importlist/testall
ImportListAPIUpdateImportListPut /api/v3/importlist/{id}
ImportListConfigAPIGetImportListConfigGet /api/v3/config/importlist
ImportListConfigAPIGetImportListConfigByIdGet /api/v3/config/importlist/{id}
ImportListConfigAPIUpdateImportListConfigPut /api/v3/config/importlist/{id}
ImportListExclusionAPICreateExclusionsPost /api/v3/exclusions
ImportListExclusionAPICreateExclusionsBulkPost /api/v3/exclusions/bulk
ImportListExclusionAPIDeleteExclusionsDelete /api/v3/exclusions/{id}
ImportListExclusionAPIDeleteExclusionsBulkDelete /api/v3/exclusions/bulk
ImportListExclusionAPIGetExclusionsByIdGet /api/v3/exclusions/{id}
ImportListExclusionAPIGetExclusionsPagedGet /api/v3/exclusions/paged
ImportListExclusionAPIListExclusionsGet /api/v3/exclusions
ImportListExclusionAPIUpdateExclusionsPut /api/v3/exclusions/{id}
ImportListMoviesAPICreateImportlistMoviePost /api/v3/importlist/movie
ImportListMoviesAPIGetImportlistMovieGet /api/v3/importlist/movie
IndexerAPICreateIndexerPost /api/v3/indexer
IndexerAPICreateIndexerActionByNamePost /api/v3/indexer/action/{name}
IndexerAPIDeleteIndexerDelete /api/v3/indexer/{id}
IndexerAPIDeleteIndexerBulkDelete /api/v3/indexer/bulk
IndexerAPIGetIndexerByIdGet /api/v3/indexer/{id}
IndexerAPIListIndexerGet /api/v3/indexer
IndexerAPIListIndexerSchemaGet /api/v3/indexer/schema
IndexerAPIPutIndexerBulkPut /api/v3/indexer/bulk
IndexerAPITestIndexerPost /api/v3/indexer/test
IndexerAPITestallIndexerPost /api/v3/indexer/testall
IndexerAPIUpdateIndexerPut /api/v3/indexer/{id}
IndexerConfigAPIGetIndexerConfigGet /api/v3/config/indexer
IndexerConfigAPIGetIndexerConfigByIdGet /api/v3/config/indexer/{id}
IndexerConfigAPIUpdateIndexerConfigPut /api/v3/config/indexer/{id}
IndexerFlagAPIListIndexerFlagGet /api/v3/indexerflag
LanguageAPIGetLanguageByIdGet /api/v3/language/{id}
LanguageAPIListLanguageGet /api/v3/language
LocalizationAPIGetLocalizationGet /api/v3/localization
LocalizationAPIGetLocalizationLanguageGet /api/v3/localization/language
LogAPIGetLogGet /api/v3/log
LogFileAPIGetLogFileByFilenameGet /api/v3/log/file/{filename}
LogFileAPIListLogFileGet /api/v3/log/file
ManualImportAPICreateManualImportPost /api/v3/manualimport
ManualImportAPIListManualImportGet /api/v3/manualimport
MediaCoverAPIGetMediaCoverByFilenameGet /api/v3/mediacover/{movieId}/{filename}
MediaManagementConfigAPIGetMediaManagementConfigGet /api/v3/config/mediamanagement
MediaManagementConfigAPIGetMediaManagementConfigByIdGet /api/v3/config/mediamanagement/{id}
MediaManagementConfigAPIUpdateMediaManagementConfigPut /api/v3/config/mediamanagement/{id}
MetadataAPICreateMetadataPost /api/v3/metadata
MetadataAPICreateMetadataActionByNamePost /api/v3/metadata/action/{name}
MetadataAPIDeleteMetadataDelete /api/v3/metadata/{id}
MetadataAPIGetMetadataByIdGet /api/v3/metadata/{id}
MetadataAPIListMetadataGet /api/v3/metadata
MetadataAPIListMetadataSchemaGet /api/v3/metadata/schema
MetadataAPITestMetadataPost /api/v3/metadata/test
MetadataAPITestallMetadataPost /api/v3/metadata/testall
MetadataAPIUpdateMetadataPut /api/v3/metadata/{id}
MetadataConfigAPIGetMetadataConfigGet /api/v3/config/metadata
MetadataConfigAPIGetMetadataConfigByIdGet /api/v3/config/metadata/{id}
MetadataConfigAPIUpdateMetadataConfigPut /api/v3/config/metadata/{id}
MissingAPIGetWantedMissingGet /api/v3/wanted/missing
MovieAPICreateMoviePost /api/v3/movie
MovieAPIDeleteMovieDelete /api/v3/movie/{id}
MovieAPIGetMovieByIdGet /api/v3/movie/{id}
MovieAPIListMovieGet /api/v3/movie
MovieAPIUpdateMoviePut /api/v3/movie/{id}
MovieEditorAPIDeleteMovieEditorDelete /api/v3/movie/editor
MovieEditorAPIPutMovieEditorPut /api/v3/movie/editor
MovieFileAPIDeleteMovieFileDelete /api/v3/moviefile/{id}
MovieFileAPIDeleteMovieFileBulkDelete /api/v3/moviefile/bulk
MovieFileAPIGetMovieFileByIdGet /api/v3/moviefile/{id}
MovieFileAPIListMovieFileGet /api/v3/moviefile
MovieFileAPIPutMovieFileEditorPut /api/v3/moviefile/editor
MovieFileAPIUpdateMovieFilePut /api/v3/moviefile/{id}
MovieImportAPICreateMovieImportPost /api/v3/movie/import
MovieLookupAPIListMovieLookupGet /api/v3/movie/lookup
MovieLookupAPIListMovieLookupImdbGet /api/v3/movie/lookup/imdb
MovieLookupAPIListMovieLookupTmdbGet /api/v3/movie/lookup/tmdb
NamingConfigAPIGetNamingConfigGet /api/v3/config/naming
NamingConfigAPIGetNamingConfigByIdGet /api/v3/config/naming/{id}
NamingConfigAPIGetNamingConfigExamplesGet /api/v3/config/naming/examples
NamingConfigAPIUpdateNamingConfigPut /api/v3/config/naming/{id}
NotificationAPICreateNotificationPost /api/v3/notification
NotificationAPICreateNotificationActionByNamePost /api/v3/notification/action/{name}
NotificationAPIDeleteNotificationDelete /api/v3/notification/{id}
NotificationAPIGetNotificationByIdGet /api/v3/notification/{id}
NotificationAPIListNotificationGet /api/v3/notification
NotificationAPIListNotificationSchemaGet /api/v3/notification/schema
NotificationAPITestNotificationPost /api/v3/notification/test
NotificationAPITestallNotificationPost /api/v3/notification/testall
NotificationAPIUpdateNotificationPut /api/v3/notification/{id}
ParseAPIGetParseGet /api/v3/parse
PingAPIGetPingGet /ping
PingAPIHeadPingHead /ping
QualityDefinitionAPIGetQualityDefinitionByIdGet /api/v3/qualitydefinition/{id}
QualityDefinitionAPIListQualityDefinitionGet /api/v3/qualitydefinition
QualityDefinitionAPIPutQualityDefinitionUpdatePut /api/v3/qualitydefinition/update
QualityDefinitionAPIUpdateQualityDefinitionPut /api/v3/qualitydefinition/{id}
QualityProfileAPICreateQualityProfilePost /api/v3/qualityprofile
QualityProfileAPIDeleteQualityProfileDelete /api/v3/qualityprofile/{id}
QualityProfileAPIGetQualityProfileByIdGet /api/v3/qualityprofile/{id}
QualityProfileAPIListQualityProfileGet /api/v3/qualityprofile
QualityProfileAPIUpdateQualityProfilePut /api/v3/qualityprofile/{id}
QualityProfileSchemaAPIGetQualityprofileSchemaGet /api/v3/qualityprofile/schema
QueueAPIDeleteQueueDelete /api/v3/queue/{id}
QueueAPIDeleteQueueBulkDelete /api/v3/queue/bulk
QueueAPIGetQueueGet /api/v3/queue
QueueActionAPICreateQueueGrabBulkPost /api/v3/queue/grab/bulk
QueueActionAPICreateQueueGrabByIdPost /api/v3/queue/grab/{id}
QueueDetailsAPIListQueueDetailsGet /api/v3/queue/details
QueueStatusAPIGetQueueStatusGet /api/v3/queue/status
ReleaseAPICreateReleasePost /api/v3/release
ReleaseAPIListReleaseGet /api/v3/release
ReleaseProfileAPICreateReleaseProfilePost /api/v3/releaseprofile
ReleaseProfileAPIDeleteReleaseProfileDelete /api/v3/releaseprofile/{id}
ReleaseProfileAPIGetReleaseProfileByIdGet /api/v3/releaseprofile/{id}
ReleaseProfileAPIListReleaseProfileGet /api/v3/releaseprofile
ReleaseProfileAPIUpdateReleaseProfilePut /api/v3/releaseprofile/{id}
ReleasePushAPICreateReleasePushPost /api/v3/release/push
RemotePathMappingAPICreateRemotePathMappingPost /api/v3/remotepathmapping
RemotePathMappingAPIDeleteRemotePathMappingDelete /api/v3/remotepathmapping/{id}
RemotePathMappingAPIGetRemotePathMappingByIdGet /api/v3/remotepathmapping/{id}
RemotePathMappingAPIListRemotePathMappingGet /api/v3/remotepathmapping
RemotePathMappingAPIUpdateRemotePathMappingPut /api/v3/remotepathmapping/{id}
RenameMovieAPIListRenameGet /api/v3/rename
RootFolderAPICreateRootFolderPost /api/v3/rootfolder
RootFolderAPIDeleteRootFolderDelete /api/v3/rootfolder/{id}
RootFolderAPIGetRootFolderByIdGet /api/v3/rootfolder/{id}
RootFolderAPIListRootFolderGet /api/v3/rootfolder
StaticResourceAPIGetGet /
StaticResourceAPIGetByPathGet /{path}
StaticResourceAPIGetContentByPathGet /content/{path}
StaticResourceAPIGetLoginGet /login
SystemAPICreateSystemRestartPost /api/v3/system/restart
SystemAPICreateSystemShutdownPost /api/v3/system/shutdown
SystemAPIGetSystemRoutesGet /api/v3/system/routes
SystemAPIGetSystemRoutesDuplicateGet /api/v3/system/routes/duplicate
SystemAPIGetSystemStatusGet /api/v3/system/status
TagAPICreateTagPost /api/v3/tag
TagAPIDeleteTagDelete /api/v3/tag/{id}
TagAPIGetTagByIdGet /api/v3/tag/{id}
TagAPIListTagGet /api/v3/tag
TagAPIUpdateTagPut /api/v3/tag/{id}
TagDetailsAPIGetTagDetailByIdGet /api/v3/tag/detail/{id}
TagDetailsAPIListTagDetailGet /api/v3/tag/detail
TaskAPIGetSystemTaskByIdGet /api/v3/system/task/{id}
TaskAPIListSystemTaskGet /api/v3/system/task
UiConfigAPIGetUiConfigGet /api/v3/config/ui
UiConfigAPIGetUiConfigByIdGet /api/v3/config/ui/{id}
UiConfigAPIUpdateUiConfigPut /api/v3/config/ui/{id}
UpdateAPIListUpdateGet /api/v3/update
UpdateLogFileAPIGetLogFileUpdateByFilenameGet /api/v3/log/file/update/{filename}
UpdateLogFileAPIListLogFileUpdateGet /api/v3/log/file/update

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

X-Api-Key

  • Type: API key
  • API key parameter name: X-Api-Key
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-Api-Key and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		radarr.ContextAPIKeys,
		map[string]radarr.APIKey{
			"X-Api-Key": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

apikey

  • Type: API key
  • API key parameter name: apikey
  • Location: URL query string

Note, each API key must be added to a map of map[string]APIKey where the key is: apikey and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		radarr.ContextAPIKeys,
		map[string]radarr.APIKey{
			"apikey": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

# Packages

No description provided by the author