Table of Contents

Method CreateSession

Namespace
Zedal.Sdk.Apis.Core
Assembly
Zedal.Sdk.dll

CreateSession(int, string, string, string, AppToken, ZedalCallContext)

Logging into an instance with the credentials provided.

Task CreateSession(int providerId, string subscriberId, string accountId, string password, AppToken appToken, ZedalCallContext context = default)

Parameters

providerId int

endpoint.

subscriberId string

subscriber.

accountId string

account.

password string

password.

appToken AppToken

mandatory token to identify the app.

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task

A Task representing the asynchronous operation.

CreateSession(ClientId, string, AppToken, ZedalCallContext)

Logging into an instance with the clientId.

[Obsolete("Use an API key instead: CreateApiKey and CreateSession(ApiKey, AppToken).")]
Task CreateSession(ClientId clientId, string clientSecret, AppToken appToken, ZedalCallContext context = default)

Parameters

clientId ClientId

the issued clientId.

clientSecret string

the issued pw.

appToken AppToken

mandatory token to identify the app.

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task

A Task representing the asynchronous operation.

CreateSession(ApiKey, AppToken, ZedalCallContext)

Logging into an instance with an API key. The key is exchanged together with the app token directly for an access token; there is no refresh token. Once the access token is about to expire, the key is exchanged again.

Task CreateSession(ApiKey apiKey, AppToken appToken, ZedalCallContext context = default)

Parameters

apiKey ApiKey

the API key, created in the ZEDAL portal.

appToken AppToken

mandatory token to identify the app.

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task

A Task representing the asynchronous operation.

CreateSession(string, AppToken, ZedalCallContext)

Logging into an instance with the userId.

Task CreateSession(string userId, AppToken appToken, ZedalCallContext context = default)

Parameters

userId string

Expected Pattern: subscriber-account@provider:password

appToken AppToken

mandatory token to identify the app

context ZedalCallContext

Optionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.

Returns

Task

A Task representing the asynchronous operation.