Created
July 25, 2016 13:27
-
-
Save neverendingqs/782e0691498c4d4f10340431bca31f46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D2LAppContextFactory appContextFactory = new D2LAppContextFactory(); | |
ID2LAppContext appContext = appContextFactory.Create(appId, appKey); | |
UserContextProperties userContextProperties = new UserContextProperties() { | |
UserId = myUserId, // put your user ID here | |
UserKey = myUserKey, // put your user key here | |
Scheme = "https", | |
HostName = bsUrl, | |
Port = port | |
}; | |
ID2LUserContext userContext = appContext.CreateUserContext( savedProps: userContextProperties ); | |
Uri endpoint = userContext.CreateAuthenticatedUri(...); | |
// call endpoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment