elCaribe app - customization and branding
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'package:news/utils/api.dart';
|
||||
|
||||
class GetUserByIdRemoteDataSource {
|
||||
Future<dynamic> getUserById() async {
|
||||
try {
|
||||
final result = await Api.sendApiRequest(body: {}, url: Api.getUserByIdApi);
|
||||
return result;
|
||||
} catch (e) {
|
||||
throw ApiMessageAndCodeException(errorMessage: e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user