Свойство | Тип | Описание | |
---|---|---|---|
CreateApiUrl | |||
D2LUserContext | System | ||
FormatSignature | string | ||
GetAdjustedTimestampInSeconds | long | ||
ID2LUserContext | RequestResult | ||
ID2LUserContext | UserContextProperties | ||
InterpretStatusCodeForbidden | RequestResult | ||
TryCalculateServerSkewFromResponse | bool |
Метод | Описание | |
---|---|---|
CreateAuthenticatedTokens ( |
||
CreateAuthenticatedTokens ( string path, string httpMethod ) : string>>.IEnumerable |
||
CreateAuthenticatedUri ( |
||
CreateAuthenticatedUri ( string path, string httpMethod ) : |
Метод | Описание | |
---|---|---|
CreateApiUrl ( string path ) : |
||
D2LUserContext ( ITimestampProvider timestampProvider, string appId, string appKey, string userId, string userKey, HostSpec apiHost ) : System |
Constructs a D2LUserContext with the parameters provided
|
|
FormatSignature ( string path, string httpMethod, long timestampSeconds ) : string |
Formats a signature to the format required by the D2L API servers
|
|
GetAdjustedTimestampInSeconds ( ) : long |
Returns the timestamp in milliseconds adjusting for the calculated skew
|
|
ID2LUserContext ( D2LWebException exceptionWrapper ) : RequestResult | ||
ID2LUserContext ( ) : UserContextProperties | ||
InterpretStatusCodeForbidden ( string responseBody ) : RequestResult |
Helper method fpor interpreting results when a 403 is received.
|
|
TryCalculateServerSkewFromResponse ( string responseBody ) : bool |
Adjusts the server skew if necessary based on the body of the response
|
public CreateAuthenticatedTokens ( |
||
fullUrl | ||
httpMethod | string | |
Результат | string>>.IEnumerable |
public CreateAuthenticatedTokens ( string path, string httpMethod ) : string>>.IEnumerable |
||
path | string | |
httpMethod | string | |
Результат | string>>.IEnumerable |
public CreateAuthenticatedUri ( |
||
fullUrl | ||
httpMethod | string | |
Результат |
public CreateAuthenticatedUri ( string path, string httpMethod ) : |
||
path | string | |
httpMethod | string | |
Результат |