I want to share the image in Pinterest. I have configured Pinterest iOS SDK without CocoaPods.
I have written code that is making me to redirect to Pinterest app and getting authorisation. But after that I didn't get any response.
In previous version of iOS SDK, we have to only pass the url of that image. But now it is asking Board id also.
I don't know how to get the board id and share the image in Pinterest since I am not getting any response from success block.
This is the code I am using.
[[PDKClient sharedInstance] authenticateWithPermissions:[NSArray arrayWithObjects:PDKClientReadPublicPermissions, nil] withSuccess:^(PDKResponseObject *responseObject) {
NSLog(@"Response Object:%@",responseObject);
} andFailure:^(NSError *error) {
NSLog(@"Error:%@",error);
}];
I am trying it for past one week. Please suggest me where I am doing mistakes.
Thank you.