Pinterest在iOS SDK中获取Client_id

时间:2015-10-13 05:54:29

标签: ios swift pinterest

请告诉我如何在Pinterest iOS SDK 2.3中使用Client_id

let imageUrl = NSURL(string: "http://prophitmarketing.com/wp-content/uploads/2015/02/Pinterest-Logo.png")
let sourceUrl = NSURL(string: "http://www.google.com")
let pinterest : Pinterest = Pinterest()

pinterest.setValue("XXXXXX", forKey: "clientId")
if(pinterest.canPinWithSDK()){
    pinterest.createPinWithImageURL(imageUrl, sourceURL:sourceUrl, description:"DemoPinit")
}

0 个答案:

没有答案