2025-10-06 17:37:19 +02:00
# ``DiscogsService``
2026-03-24 01:22:53 +00:00
A Swift client library for the Discogs API, built on top of Swift OpenAPI.
2025-10-06 17:37:19 +02:00
## Overview
2026-03-24 01:22:53 +00:00
This library provides a type-safe client for interacting with the [Discogs API ](https://www.discogs.com/developers ), including endpoints for the database, user identity, user collections, wantlists, lists, and the marketplace. It supports multiple authentication methods and transports credentials via headers or query parameters.
2025-10-06 17:37:19 +02:00
2026-03-24 01:54:43 +00:00
## Installation
To use this library, then add it as a dependency in the `Package.swift` file of your project:
``` swift
let package = Package (
// n a m e , p l a t f o r m s , p r o d u c t s , e t c .
dependencies : [
. package ( url : " https://github.com/rock-n-code/discogs-service " , from : " 0.6.1 " ) ,
// o t h e r d e p e n d e n c i e s
] ,
targets : [
. target (
name : " SomeTarget " ,
dependencies : [
. product ( name : " DiscogsService " , package : " discogs-service " ) ,
]
)
// o t h e r t a r g e t s
]
)
```
It is also possible to use this library with your app in Xcode, then add it as a dependency in your Xcode project.
> important: Swift 5.10 or higher is required in order to compile this library.
2025-10-06 17:37:19 +02:00
## Topics
2025-10-11 07:39:52 +00:00
### Clients
2025-10-06 17:37:19 +02:00
2025-10-11 07:39:52 +00:00
- ``Client` `
### Servers
2025-10-13 15:20:20 +00:00
- ``LiveService` `
2025-10-11 07:39:52 +00:00
### Authentication
- ``AuthMiddleware` `
- ``AuthMethod` `
- ``AuthTransport` `
2025-10-13 00:54:17 +00:00
### User Agent
- ``UserAgentMiddleware` `
- ``Product` `
2025-10-11 07:39:52 +00:00
### Types
- ``Components` `
- ``Operations` `
- ``Servers` `
2025-10-13 13:09:10 +00:00
### Errors
- ``InputValidationError` `
2025-10-11 07:39:52 +00:00
### Protocols
- ``APIProtocol` `