getVideos method
Future<HttpResult<OpenApiGetVideosResponse> >
getVideos({
- required String userId,
- String? after,
- String? before,
- String? first,
- String? language,
- String? period,
- String? sort,
- String? type,
override
Implementation
@override
Future<HttpResult<OpenApiGetVideosResponse>> getVideos({
required String userId,
String? after,
String? before,
String? first,
String? language,
String? period,
String? sort,
String? type,
}) {
return client.makeGet(
OpenApiChannelConstants.getVideosEndpoint,
convertBodyFunc: (response) =>
OpenApiGetVideosResponse.fromHttpResponse(response),
queryParameters: {
OpenApiChannelConstants.queryParamUserId: userId,
OpenApiChannelConstants.queryParamAfter: after,
OpenApiChannelConstants.queryParamBefore: before,
OpenApiChannelConstants.queryParamFirst: first,
OpenApiChannelConstants.queryParamLanguage: language,
OpenApiChannelConstants.queryParamPeriod: period,
OpenApiChannelConstants.queryParamSort: sort,
OpenApiChannelConstants.queryParamType: type,
},
bearerToken: token,
clientId: clientId,
);
}