0
似乎有一個字典值,我可以放在與PDKPin屬性對應的GET調用中,我可以在我的成功塊中調用解壓值,即「url」= PDKPin.url「note」= PDKPin .decriptionText,但我無法找到相應的屬性「鏈接」,這是可用的每個文件https://developers.pinterest.com/docs/api/pins/?Pinterest SDK如何獲得PDKPin的鏈接?
PDKClient.sharedInstance().getAuthenticatedUserPinsWithFields(Set(["url", "note", "link"]), success:
{ (responseObject :PDKResponseObject!) -> Void in
print("success /(pdk)")
let currentResponseObject = responseObject
let pins = currentResponseObject.pins
self.pinArray = pins()
for pin in self.pinArray {
if let pinAsPDKPin = pin as? PDKPin {
print(pinAsPDKPin.descriptionText)
if let safeURL = pinAsPDKPin.url {
print(safeURL)
}
let link = pinAsPDKPin.link //no such property on PDKPin
}
}
}) { (err :NSError!) -> Void in
print("error NSError: \(err)")
}
我想通了,但你是正確的先生!祝賀賞金! =) – GarySabo