I am using first time apple music api in my IOS app. I have already generate developer token with the help of python commands.
i am getting error every time when request for the user token "An error occurred when requesting user token: The operation couldn’t be completed. (SKErrorDomain error 7.)"
my developer token look like as "esfd.................................................................................Mpo"
if #available(iOS 11.0, *)
{
SKCloudServiceController().requestUserToken(forDeveloperToken:
developerToken, completionHandler: { (userToken, error) in
print("An error occurred when requesting user token: \(error!.localizedDescription)")
})
}
else
{
SKCloudServiceController().requestPersonalizationToken(forClientToken: developerToken, withCompletionHandler: { (userToken, error) in
print("An error occurred when requesting user token: \(error!.localizedDescription)")
})
}
Please anyone help me ....