SPTSession
class SPTSession : NSObject, NSSecureCoding
-
Creates a Spotify Web API request using the current session for authorization.
Declaration
Parameters
method
The HTTP verb to use for this request:
GET
,PUT
,POST
, orDELETE
.url
The destination URL for this request.
parameters
The parameters for this request, if any.
Return Value
An authorized
SKRequest
instance, ornil
if a request cannot be instantiated with the given parameters. -
Creates a Spotify Web API request using the current session for authorization.
Declaration
Parameters
method
The HTTP verb to use for this request:
GET
,PUT
,POST
, orDELETE
.endpoint
The destination endpoint for this request.
parameters
The parameters for this request, if any.
Return Value
An authorized
SKRequest
instance, ornil
if a request cannot be instantiated with the given parameters.