Pinterest iOS SDK的PDKPin.m中出错
我目前正在使用iOS SDK的“getAuthenticatedUserPinsWithFields”方法返回用户的PIN:Pinterest iOS SDK的PDKPin.m中出错,ios,pinterest,Ios,Pinterest,我目前正在使用iOS SDK的“getAuthenticatedUserPinsWithFields”方法返回用户的PIN: let fields = ["id","note","url","image"] as NSSet PDKClient.sharedInstance().getAuthenticatedUserPinsWithFields(fields as Set<NSObject>, success: { (responseObject :PDKRespo
let fields = ["id","note","url","image"] as NSSet
PDKClient.sharedInstance().getAuthenticatedUserPinsWithFields(fields as Set<NSObject>,
success: { (responseObject :PDKResponseObject!) -> Void in
@“link”引用始终返回nil,但使用“url”将返回pin的url。在这种情况下SDK是错误的吗
谢谢,安妮塔这个安妮塔运气好吗?我也有同样的问题:我认为SDK仍然存在错误,可能应该针对这个问题编写一个问题。我通过如上所述在本地进行修改暂时解决了这个问题。我会在有时间的时候再查看。谢谢,我确实提交了一个关于回购协议的问题,我正在尝试获取Pin的链接(即Pin链接的网站)。这个Anita有什么好运气吗?我也有同样的问题:我认为SDK仍然存在错误,可能应该针对这个问题编写一个问题。我通过如上所述在本地进行修改暂时解决了这个问题。我会在有时间后再查看。谢谢,我确实提交了一个关于回购的问题,我正在尝试获取Pin的链接(即Pin链接到的网站)
(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
self = [super initWithDictionary:dictionary];
if (self) {
// _url = [NSURL URLWithString:dictionary[@"link"]];
_url = [NSURL URLWithString:dictionary[@"url"]];
_descriptionText = dictionary[@"note"];
_board = [PDKBoard boardFromDictionary:dictionary[@"board"]];
_creator = [PDKUser userFromDictionary:dictionary[@"creator"]];
_metaData = dictionary[@"metadata"];
_repins = [self.counts[@"repins"] unsignedIntegerValue];
_likes = [self.counts[@"likes"] unsignedIntegerValue];
_comments = [self.counts[@"comments"] unsignedIntegerValue];
}
return self;
}