TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Oktana.
OKTY-Salesforce-iOS, a library manager to connect native iOS apps with Salesforce.
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like
SalesforceMobileSDK in your projects.
Write on the Podfile:
pod "OKTY-Salesforce-iOS"
Download OKTY-Salesforce-iOS and try out the included iPhone example apps.
To get further information about Salesforce read the following content:
Salesforce Mobile SDK:
Dependency libraries:
Resources bundle:
Import headers: SFUserAccountManager.h
, SFAuthenticationManager.h
Set your Connected App Consumer Key.
[SFUserAccountManager sharedInstance].oauthClientId = @"3MVG9Iu66FKeHhINkB1l7xt7kR8czFcCTUhgoA8Ol2Ltf1eYHOU4SqQRSEitYFDUpqRWcoQ2.dBv_a1Dyu5xa";
Set your Connected App's Callback URL.
[SFUserAccountManager sharedInstance].oauthCompletionUrl = @"testsfdc:///mobilesdk/detect/oauth/done";
Set the OAuth scopes that your Connected App will request.
[SFUserAccountManager sharedInstance].scopes = [NSSet setWithObjects:@"web", @"api", nil];
Launch authentication.
[[SFAuthenticationManager sharedManager]
loginWithCompletion:(SFOAuthFlowSuccessCallbackBlock)^(SFOAuthInfo *info) {
NSLog(@"Authentication Done");
}
failure:(SFOAuthFlowFailureCallbackBlock)^(SFOAuthInfo *info, NSError *error) {
NSLog(@"Authentication Failed");
[[SFAuthenticationManager sharedManager] logout];
}
];`
Copyright (c) 2014 Oktana
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.