You've already forked FinalYearProject-MyMind
mirror of
https://github.com/MrLyallCSIT/FinalYearProject-MyMind.git
synced 2026-01-18 07:09:41 +00:00
56 lines
1.5 KiB
Objective-C
Executable File
56 lines
1.5 KiB
Objective-C
Executable File
//
|
|
// AWSMSDynamicsAuthorizationManager.h
|
|
//
|
|
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
|
|
//
|
|
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to
|
|
// copy, distribute and modify it.
|
|
//
|
|
|
|
#import "AWSAuthorizationManager.h"
|
|
|
|
@interface AWSMSDynamicsAuthorizationManager : AWSAuthorizationManager
|
|
|
|
/**
|
|
* Singleton used to authorize user during OAuth2.0
|
|
* @return the singleton
|
|
*/
|
|
+ (instancetype _Nonnull)sharedInstance;
|
|
|
|
/**
|
|
* Customize the flow.
|
|
*
|
|
* @param clientID The client ID provided by Microsoft Dynamics
|
|
* @param redirectURI The redirect URI you provided Microsoft Dynamics
|
|
* i.e. https://mysampleapp.amazonaws.com/msdynamics/success
|
|
* @param resource The URL of the resource you will access
|
|
*/
|
|
- (void)configureWithClientID:(NSString * _Nonnull)clientID
|
|
redirectURI:(NSString * _Nonnull)redirectURI
|
|
resource:(NSString * _Nonnull)resource;
|
|
/**
|
|
* @param The version of Microsoft Dynamics API you are using.
|
|
* The default value is "v8.0"
|
|
*/
|
|
- (void)setAPIVersion:(NSString * _Nonnull)apiVersion;
|
|
|
|
/**
|
|
* @return The token type. Available after user authorizes app.
|
|
* i.e. Bearer
|
|
*/
|
|
- (NSString * _Nullable)getTokenType;
|
|
|
|
/**
|
|
* @return The resource you will access in Microsoft Dynamics
|
|
* with the API version attached to the end
|
|
* i.e. https://emhawsapps.crm.dynamics.com
|
|
*/
|
|
- (NSString * _Nullable)getResourceURL;
|
|
|
|
/**
|
|
* @return the accessToken used for API calls
|
|
*/
|
|
- (NSString * _Nullable)getAccessToken;
|
|
|
|
@end
|