|
InstallationGuideUpdated
How to Install in Your App
#import "DCSatisfactionRemoteViewController.h" - (IBAction)launchSatisfactionRemoteComponent:(id)sender {
/*
// Get Satisfaction OAuth Key & Secret
// * Register your app at http://getsatisfaction.com/me/extensions
//
// companyKey
// * Find it in your GSFN URL: http://getsatisfaction.com/[companyKey]
//
// companyName
// * Optional, but recommended. (displayed in the search bar)
//
// productId
// * Optional, used for browsing only one product.
// * Find it by going here and view source: http://api.getsatisfaction.com/companies/[companyKey]/products
//
// productName
// * Optional, but must match the product name on GSFN exactly (for posting topics to a product).
*/
DCSatisfactionRemoteViewController *remoteViewController = [[DCSatisfactionRemoteViewController alloc]
initWithGetSatisfactionOAuthKey:@"XXXXXXXXXXXXXXXXX"
getSatisfactionOAuthSecret:@"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
companyKey:@"XXXXXXXXXXXXXXXXX"];
remoteViewController.companyName = @"XXXXXXXXXXXXXXXXX";
remoteViewController.productId = XXXXX;
remoteViewController.productName = @"XXXXXXXXXXXXXXXXX";
// see if we just returned from logging in via Safari
if ([sender isKindOfClass:[NSURL class]]) {
remoteViewController.didReturnFromSafari = YES;
}
[[self navigationController] presentModalViewController:remoteViewController animated:YES];
[remoteViewController release];
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
[self launchSatisfactionRemoteComponent:url];
return YES;
}Tips
|
► Sign in to add a comment
What is yourapp? The name of the web applicaiton, the url, the name of the iPhone app?
i just fix all bugs and update satisfactionremotecomponent to the latest version of OAuthConsumer http://github.com/Constantine-Fry/Satisfaction-remote-component
My app already uses JanRain? to authenticate the user. Is there anyway I can pass these credentials to the remote component so that my users don't have to login twice to leave a comment?
cc
would you please update the link for the Satisfaction-remote-component? I want to download one. thank you
i really need this. would you please give me a link to the satisfactionremotecomponent? thank you