DSMManager.h
1 // DSMManager.h
2 // DocuSignSDK
3 #import <Foundation/Foundation.h>
4 #import "DSMSetupConstants.h"
5 #import "DSMLoggingLevel.h"
6 
13 @interface DSMManager : NSObject
14 
17 + (NSString *)name;
18 
21 + (NSString *)buildVersion;
22 
26 + (void)setup;
27 
33 + (void)setLoggingLevel:(DSMLoggingLevel)level;
34 
46 + (void)setupWithConfiguration:(NSDictionary <NSString *, NSString *> *)configuration;
47 
51 + (BOOL)configuredValueForSetupKey:(NSString *)key;
52 
56 + (NSDictionary<NSString *, NSString *> *)defaultConfigurations;
57 
66 + (void)loginWithUserId:(NSString *)userName
67  password:(NSString *)password
68  integratorKey:(NSString *)integratorKey
69  host:(NSURL *)url
70  completionBlock:(void(^)(NSError *))completionBlock;
71 
83 + (void)loginWithAccessToken:(NSString *)accessToken
84  accountId:(NSString *)accountId
85  userId:(NSString *)userId
86  userName:(NSString *)userName
87  email:(NSString *)email
88  host:(NSURL *)host
89  integratorKey:(NSString *)integratorKey
90  completion:(void(^)(NSError *error))completionBlock;
91 
103 + (void)loginWithApiPassword:(NSString *)apiPassword
104  accountId:(NSString *)accountId
105  userId:(NSString *)userId
106  userName:(NSString *)userName
107  email:(NSString *)email
108  host:(NSURL *)host
109  integratorKey:(NSString *)integratorKey
110  completion:(void(^)(NSError *error))completionBlock;
111 
119 
120 @end
BOOL clearCredentialsAndCachedTemplates()
clean/clear all local storage and user data - called when user logs out. Note: Invoking this method w...
NSDictionary< NSString *, NSString * > * defaultConfigurations()
default configurations
NSString * name()
name
NSString * buildVersion()
buildVersion
void setup()
Sets up managed context. should be called from application:​did​Finish​Launching​With​Options: ...
Definition: DSMManager.h:13