1 line
6.3 KiB
JSON
1 line
6.3 KiB
JSON
{"kind":"symbol","schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService","doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware"]]},"identifier":{"url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/init(product:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Initializes this middleware."}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"product"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService7ProductV","text":"Product","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Product"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"languages":["swift"]}]},{"parameters":[{"name":"product","content":[{"inlineContent":[{"type":"text","text":"A product from which the user agent will be generated from."}],"type":"paragraph"}]}],"kind":"parameters"},{"content":[{"level":2,"type":"heading","anchor":"discussion","text":"Discussion"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"An error of type "},{"isActive":true,"type":"reference","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/InputValidationError"},{"type":"text","text":" in case an input failed any validation."}]}],"type":"aside","style":"note","name":"Throws"}],"kind":"content"}],"metadata":{"title":"init(product:)","modules":[{"name":"DiscogsService"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"("},{"text":"product","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Product","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService7ProductV"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"externalID":"s:14DiscogsService19UserAgentMiddlewareV7productAcA7ProductV_tKcfc","role":"symbol","symbolKind":"init","roleHeading":"Initializer"},"variants":[{"paths":["\/documentation\/discogsservice\/useragentmiddleware\/init(product:)"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","type":"topic","url":"\/documentation\/discogsservice","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService","abstract":[],"kind":"symbol","role":"collection"},"doc://DiscogsService/documentation/DiscogsService/UserAgentMiddleware":{"abstract":[{"type":"text","text":"A middleware that attaches the user agent header into the requests to the service."}],"role":"symbol","url":"\/documentation\/discogsservice\/useragentmiddleware","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware","type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"UserAgentMiddleware","kind":"identifier"}],"navigatorTitle":[{"text":"UserAgentMiddleware","kind":"identifier"}],"title":"UserAgentMiddleware","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/UserAgentMiddleware/init(product:)":{"kind":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/init(product:)","role":"symbol","abstract":[{"type":"text","text":"Initializes this middleware."}],"type":"topic","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"product","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService7ProductV","text":"Product","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"title":"init(product:)","url":"\/documentation\/discogsservice\/useragentmiddleware\/init(product:)"},"doc://DiscogsService/documentation/DiscogsService/Client":{"role":"symbol","navigatorTitle":[{"kind":"identifier","text":"Client"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Client"}],"abstract":[{"type":"text","text":"The Discogs API v2.0 is a RESTful interface to Discogs data. You can access JSON-formatted information about Database objects such as "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Artists"}]},{"type":"text","text":", "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Releases"}]},{"type":"text","text":", and "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Labels"}]},{"type":"text","text":". Your application can also manage "},{"type":"emphasis","inlineContent":[{"type":"text","text":"User Collections"}]},{"type":"text","text":" and "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Wantlists"}]},{"type":"text","text":", create "},{"type":"emphasis","inlineContent":[{"type":"text","text":"Marketplace"}]},{"type":"text","text":" listings, and more."}],"url":"\/documentation\/discogsservice\/client","title":"Client","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Client","type":"topic","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/Product":{"abstract":[{"text":"A type that represents a product that uses the ","type":"text"},{"isActive":true,"type":"reference","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Client"},{"text":" client.","type":"text"}],"role":"symbol","url":"\/documentation\/discogsservice\/product","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Product","type":"topic","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Product","kind":"identifier"}],"navigatorTitle":[{"text":"Product","kind":"identifier"}],"title":"Product","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/InputValidationError":{"navigatorTitle":[{"kind":"identifier","text":"InputValidationError"}],"kind":"symbol","url":"\/documentation\/discogsservice\/inputvalidationerror","fragments":[{"text":"enum","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"InputValidationError"}],"title":"InputValidationError","abstract":[{"type":"text","text":"A representation of all the possible validation error that could be thrown while validating an input."}],"role":"symbol","type":"topic","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/InputValidationError"}}} |