Service for performing requests. A valid JWT is required to perform requests.
It is possible to just perform a single request, or to perform requests until all items has been fetched, if the response type supports paging.
If the JWT has expired, it will be renewed before the request is performed.See more
public class BagbutikService
A JSON Web Token (JWT) to be used to authorize API requests.
The JWT is valid for 20 minutes, but will be renewed automatically when performing requests with
Full documentation for how JWT is used with the API: https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requestsSee more
public struct JWT
Function used to fetch data for requests.
Only used to inject into a
public typealias FetchData = (_ request: URLRequest, _ delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
The URLRequest for which to load data.
Data and response.
Errors from the API or from the decoding of the responses.See more
public enum ServiceError : Error