OzoneTool.fromOAuthSession constructor
OzoneTool.fromOAuthSession(
- OAuthSession session, {
- Map<
String, String> ? headers, - Protocol? protocol,
- String? service,
- String? relayService,
- Duration? timeout,
- RetryConfig? retryConfig,
- GetClient? getClient,
- PostClient? postClient,
Returns the new instance of OzoneTool.
Implementation
factory OzoneTool.fromOAuthSession(
final oauth.OAuthSession session, {
final Map<String, String>? headers,
final core.Protocol? protocol,
final String? service,
final String? relayService,
final Duration? timeout,
final core.RetryConfig? retryConfig,
final core.GetClient? getClient,
final core.PostClient? postClient,
}) => _OzoneTool(
core.ServiceContext(
headers: headers,
protocol: protocol,
service: service,
relayService: relayService,
oAuthSession: session,
timeout: timeout,
retryConfig: retryConfig,
getClient: getClient,
postClient: postClient,
),
atp.ATProto.fromOAuthSession(
session,
headers: headers,
protocol: protocol,
service: service,
relayService: relayService,
timeout: timeout,
retryConfig: retryConfig,
getClient: getClient,
postClient: postClient,
),
);